PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends Namespace / Meta­Logging­Backend Class / Meta­Logging­Backend Methods / Meta­Logging­Backend.​Create­From­Default­Backend Method

MetaLoggingBackend.CreateFromDefaultBackend Method

Returns a LoggingBackend, for use with the Meta role, that will try to write to DefaultBackend if it is enabled, and will optionally write warnings and errors to the console and the debugger.

Namespace:  PostSharp.Patterns.Diagnostics.Backends
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static LoggingBackend CreateFromDefaultBackend(
	bool toConsole = true,
	bool toDebugger = true


toConsole (Optional)
Type: System.Boolean
toDebugger (Optional)
Type: System.Boolean

Return Value

Type: LoggingBackend
A LoggingBackend: either a MultiplexerBackend or a the DefaultBackend itself.
See Also