Class: Logger

Logger

Implements functionality of logger for components.

Members

<static, readonly> LOG_LEVELS

Enum defining the all log levels available.
Properties:
Name Type Default Description
OFF Number 0 Log level to turn logging off (default)
FATAL Number 1 Log level for fatal error messages
ERROR Number 2 Log level for error messages
WARN Number 3 Log level for warning messages
INFO Number 4 Log level for info messages
DEBUG Number 5 Log level for debug messages
TRACE Number 6 Log level for trace messages

Methods

log(level, message)

Writes log message at a specific level log message to the logger.
Parameters:
Name Type Description
level Number The log level. Different log levels are present as constants in the logger.
message String The log message.