1.0.0 • Published 6 years ago
@orchestra-platform/logger v1.0.0
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
Stringmethod
Stringmsg
Stringoutput
(String | Object) If it's an Object it will be stringified
d
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
w
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
e
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
write
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
getLogger
It returns the Logger instance with the specified name
Parameters
name
String Logger name