Logging functionality entry point. This is a convenience wrapper which exposes the desired public methods of the LogManager.

See:

Static methods

staticdata ():LogData

Get the current log configuration

Returns:

LogData Shows info about logging, is it enabled, what's the currently set categories, level, theme

staticevents ():LogEvents

Collection of events dispatched by logging

Returns:

LogEvents Event collection

staticgetLogger (contextSource:Any, ?options:LoggerOptions):ILogger

Get an instance of logger

Parameters:

contextSource

The context in which logs occur, usually a reference to the class

options

Optional data to configure the logger instance

Returns:

ILogger

staticsetEnabled (value:Bool):Void

Turn on/off the TOP logging

Parameters:

value

true to enable logging

See:

staticsetTheme (theme:LogTheme):Void

Specify the console log theme

Parameters:

theme

The theme to use (light or dark)

See:

staticupdateCategories (categories:Dynamic):Void

Specify which log categories to show

Parameters:

categories

Map of categories to enable/disable

See:

staticupdateLevels (levels:Dynamic):Void

Specify which log levels to show

Parameters:

levels

Map of levels to enable/disable

See:

staticuseDefaults ():Void

Reset all log settings to the default values