Classes
Members
# static level
The level at which the LogService is running.
Methods
# static debug(module, messageOrObject)
Logs to the DEBUG channel
Parameters:
Name | Type | Description |
---|---|---|
module |
string
|
The module being logged |
messageOrObject |
Array.<any>
|
The data to log |
# static error(module, messageOrObject)
Logs to the ERROR channel
Parameters:
Name | Type | Description |
---|---|---|
module |
string
|
The module being logged |
messageOrObject |
Array.<any>
|
The data to log |
# static info(module, messageOrObject)
Logs to the INFO channel
Parameters:
Name | Type | Description |
---|---|---|
module |
string
|
The module being logged |
messageOrObject |
Array.<any>
|
The data to log |
# static muteModule(name)
Mutes a module from the logger.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
The module name to mute. |
# static setLevel(level)
Sets the log level for this logger. Defaults to DEBUG.
Parameters:
Name | Type | Description |
---|---|---|
level |
LogLevel
|
the new log level |
# static setLogger(logger)
Sets a new logger for the Log Service
Parameters:
Name | Type | Description |
---|---|---|
logger |
ILogger
|
the new logger |
# static trace(module, messageOrObject)
Logs to the TRACE channel
Parameters:
Name | Type | Description |
---|---|---|
module |
string
|
The module being logged |
messageOrObject |
Array.<any>
|
The data to log |
# static warn(module, messageOrObject)
Logs to the WARN channel
Parameters:
Name | Type | Description |
---|---|---|
module |
string
|
The module being logged |
messageOrObject |
Array.<any>
|
The data to log |