Table of Contents
- [i](#i)
- [d](#d)
- [w](#w)
- [e](#e)
- [write](#write)
- [getLogger](#getlogger)
Logger
Just a simple logger. The available log levels are: INFO, DEBUG, WARN, ERRORParameters
options
Object
- `options.logLevel` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Must be one of Logger.LOG_LEVELS. (optional, default `Logger.LOG_LEVELS.WARN`)
- `options.name` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Name of the logger (optional, default `'Logger'`)
i
Call Logger.write with logLevel = Logger.LOGLEVELS.INFOParameters
file
Stringmethod
Stringmsg
Stringoutput
(String \| Object) If it's an Object it will be stringified
d
Call Logger.write with logLevel = Logger.LOGLEVELS.DEBUGParameters
file
Stringmethod
Stringmsg
Stringoutput
(String \| Object) If it's an Object it will be stringified
w
Call Logger.write with logLevel = Logger.LOGLEVELS.WARNParameters
file
Stringmethod
Stringmsg
Stringoutput
(String \| Object) If it's an Object it will be stringified
e
Call Logger.write with logLevel = Logger.LOGLEVELS.ERRORParameters
file
Stringmethod
Stringmsg
Stringoutput
(String \| Object) If it's an Object it will be stringified
write
It prints a log to the consoleParameters
logLevel
Number Must be one of Logger.LOGLEVELSfile
Stringmethod
Stringmsg
Stringoutput
(String \| Object) If it's an Object it will be stringified
getLogger
It returns the Logger instance with the specified nameParameters
name
String Logger name