Open sandboxFocus

Method CreateFromDefaultBackend

CreateFromDefaultBackend(bool, bool)

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
bool toConsole

true to write warnings and errors to the console, otherwise false.

bool toDebugger

true to write warnings and errors to the debugger, otherwise false.

Returns
Type Description
LoggingBackend

A LoggingBackend: either a MultiplexerBackend or the DefaultBackend itself.