Generic logging class that runs in a separate thread.

Can also collect system metrics.

Constructor

new (paramsVar:_LogOptions)

Creates a new logger instance.

Parameters:

paramsVar

Logger parameters.

Methods

add (msg:_LogMessage):Void

Adds a message to logger.

Parameters:

msg

Message parameters.

metrics (msg:_MetricsMessage):Void

Adds a metrics measurement message to logger.

Parameters:

msg

Message parameters.

inline setPrintLog (val:Bool):Void

Enables or disables log printing to stdout.

Parameters:

val

New variable value.

inline setWriteLog (val:Bool):Void

Enables or disables log writing to disk drive.

Parameters:

val

New variable value.