PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​BackendsMeta­Logging­BackendCreate­From­Default­Backend
Open sandboxFocus

MetaLoggingBackend.CreateFromDefaultBackend Method

CreateFromDefaultBackend(Boolean, Boolean)

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.

Declaration
public static LoggingBackend CreateFromDefaultBackend(bool toConsole = true, bool toDebugger = true)
Parameters
Type Name Description
Boolean toConsole
Boolean toDebugger
Returns
Type Description
LoggingBackend

A LoggingBackend: either a MultiplexerBackend or a the DefaultBackend itself.