Constructor
new Logger(logManLogFunction, logName)
Constructor, pass the logging function and log name
- Source:
Parameters:
Name | Type | Description |
---|---|---|
logManLogFunction |
function
|
Function called when we want to log data |
logName |
string
|
Name of this log (section) |
Methods
critical(msg, outputToConsoleopt)
Log data at level error
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
msg |
string
|
object
|
any
|
Message / data you wish to log | ||
outputToConsole |
boolean
|
<optional> |
true | Output this particular message to the console. Defaults to true |
debug(msg, outputToConsoleopt)
Log data at level debug
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
msg |
string
|
object
|
any
|
Message / data you wish to log | ||
outputToConsole |
boolean
|
<optional> |
true | Output this particular message to the console. Defaults to true |
error(msg, outputToConsoleopt)
Log data at level error
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
msg |
string
|
object
|
any
|
Message / data you wish to log | ||
outputToConsole |
boolean
|
<optional> |
true | Output this particular message to the console. Defaults to true |
http(msg, outputToConsoleopt)
Log data at level http
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
msg |
string
|
object
|
any
|
Message / data you wish to log | ||
outputToConsole |
boolean
|
<optional> |
true | Output this particular message to the console. Defaults to true |
info(msg, outputToConsoleopt)
Log data at level info
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
msg |
string
|
object
|
any
|
Message / data you wish to log | ||
outputToConsole |
boolean
|
<optional> |
true | Output this particular message to the console. Defaults to true |
silly(msg, outputToConsoleopt)
Log data at level silly
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
msg |
string
|
object
|
any
|
Message / data you wish to log | ||
outputToConsole |
boolean
|
<optional> |
true | Output this particular message to the console. Defaults to true |
verbose(msg, outputToConsoleopt)
Log data at level verbose
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
msg |
string
|
object
|
any
|
Message / data you wish to log | ||
outputToConsole |
boolean
|
<optional> |
true | Output this particular message to the console. Defaults to true |
warn(msg, outputToConsoleopt)
Log data at level warn
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
msg |
string
|
object
|
any
|
Message / data you wish to log | ||
outputToConsole |
boolean
|
<optional> |
true | Output this particular message to the console. Defaults to true |