1.1.1 • Published 3 years ago
doors-logger v1.1.1
doors-logger
A logging library in javascript with various debug levels.
import using
const Logger = require('doors-logger');
const log = new Logger();
// the functions are:
log.SUCCESS(...);
log.INFO(...);
log.RESPONSE(...);
log.WARNING(...);
log.CRITICAL(...);Each function has 2 parameters: label and content. label is the title of message and content is the body of message
log.SUCCESS(label, message)The above will produce the following result:
| HANDLES | COLORS |
|---|---|
| success | green |
| info | white |
| response | cyan |
| warning | yellow |
| critical | red |
Getting the logs in a file
log.down(FILEPATH)