Logger class
export default class Logger
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(options) | Constructs a new instance of the Logger class |
Methods
Method | Modifiers | Description |
---|---|---|
enabled(level) | Returns true if the given level is enabled in logger. | |
getLevel() | Returns logger level. | |
getWriter() | Returns writer of logger. | |
log(level, message, options) | ||
setLevel(level) | Sets logger level. | |
setWriter(writer) | Sets writer of logger. |