Just a simple logger. The available log levels are: INFO, DEBUG, WARN, ERROR
Parameters
options
Object
Call Logger.write with logLevel = Logger.LOG_LEVELS.INFO
Parameters
file
Stringmethod
Stringmsg
Stringoutput
(String | Object) If it's an Object it will be stringified
Call Logger.write with logLevel = Logger.LOG_LEVELS.DEBUG
Parameters
file
Stringmethod
Stringmsg
Stringoutput
(String | Object) If it's an Object it will be stringified
Call Logger.write with logLevel = Logger.LOG_LEVELS.WARN
Parameters
file
Stringmethod
Stringmsg
Stringoutput
(String | Object) If it's an Object it will be stringified
Call Logger.write with logLevel = Logger.LOG_LEVELS.ERROR
Parameters
file
Stringmethod
Stringmsg
Stringoutput
(String | Object) If it's an Object it will be stringified
It prints a log to the console
Parameters
logLevel
Number Must be one of Logger.LOG_LEVELSfile
Stringmethod
Stringmsg
Stringoutput
(String | Object) If it's an Object it will be stringified
It returns the Logger instance with the specified name
Parameters
name
String Logger name