@aloxide/logger
v0.6.0
Published
This is a simple logger interface allows use any available logger.
Downloads
12
Readme
Table of content
Package @aloxide/logger
This is a simple logger interface allows use any available logger.
Usage
// typescript
import type { Logger } from '@aloxide/logger';
It also provides a colorized console-log:
// typescript
import { createLogger } from '@aloxide/logger';
declare global {
var logger: Logger;
}
// if consoleLogger is set to false, the function will create a null logger
// which do nothing with log
global.logger = createLogger({ consoleLogger: true });
logger.debug('Set up logger');