|
|
hace 1 año | |
|---|---|---|
| .. | ||
| dist | hace 1 año | |
| src | hace 1 año | |
| LICENSE | hace 1 año | |
| README.md | hace 1 año | |
| package.json | hace 1 año | |
> interface Logger { > debug(message?: any): void; > info(message?: any): void; > warn(message?: any): void; > error(message?: any): void; > } > ``` This generic interface for loggers supports logging a string at one of four different levels (`debug`, `info`, `warn`, `error`). It's designed to be compatible with Node's `console` as well as commonly used logging packages and is tested against a few of them. Below are the logging libraries we test for compatibility against. ## bunyanconst logger = bunyan.createLogger();
## log4jsconst logger = log4js.getLogger();
## loglevelconst logger = loglevel.getLogger();
## winstonconst logger = winston.createLogger(); ```