# class Log

#### package com.turner.top.lib.logging

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

See:

Integration - Logging

### 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:

Integration - Logging Enable

###

`staticsetTheme (theme:LogTheme):Void`

Specify the console log theme

Parameters:

`theme` | The theme to use (light or dark)

See:

Integration - Logging Theme

###

`staticupdateCategories (categories:Dynamic):Void`

Specify which log categories to show

Parameters:

`categories` | Map of categories to enable/disable

See:

Integration - Logging Category

###

`staticupdateLevels (levels:Dynamic):Void`

Specify which log levels to show

Parameters:

`levels` | Map of levels to enable/disable

See:

Integration - Logging Level

###

`staticuseDefaults ():Void`

Reset all log settings to the default values