PostSharp 6.10 / / 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: 6.10.14.0 (6.10.14.0)
Syntax
C#
public static LoggingBackend CreateFromDefaultBackend(
	bool toConsole = true,
	bool toDebugger = true
)

Parameters

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