Table of Contents
Logger
Just a simple logger. The available log levels are: INFO, DEBUG, WARN, ERROR
Parameters
-
options
Object
i
Call Logger.write with logLevel = Logger.LOG_LEVELS.INFO
Parameters
-
file
String -
method
String -
msg
String -
output
(String | Object) If it's an Object it will be stringified
d
Call Logger.write with logLevel = Logger.LOG_LEVELS.DEBUG
Parameters
-
file
String -
method
String -
msg
String -
output
(String | Object) If it's an Object it will be stringified
w
Call Logger.write with logLevel = Logger.LOG_LEVELS.WARN
Parameters
-
file
String -
method
String -
msg
String -
output
(String | Object) If it's an Object it will be stringified
e
Call Logger.write with logLevel = Logger.LOG_LEVELS.ERROR
Parameters
-
file
String -
method
String -
msg
String -
output
(String | Object) If it's an Object it will be stringified
write
It prints a log to the console
Parameters
-
logLevel
Number Must be one of Logger.LOG_LEVELS -
file
String -
method
String -
msg
String -
output
(String | Object) If it's an Object it will be stringified
getLogger
It returns the Logger instance with the specified name
Parameters
-
name
String Logger name