@kkmb/logger
v1.0.1
Published
A simple logging for server side js
Downloads
121
Maintainers
Readme
@kkmb/logger
A simple logging for server side js
Installation
npm install @kkmb/logger
Usage
- Commonjs
const {Logger} = require( '@kkmb/logger');
const log = new Logger();
log.info("This is info log !");
log.error("This is error log !");
log.warn("This is warning log !");
log.debug("This is debug log !");
log.trace("This is trace log !");
- ESM
import {Logger} from '@kkmb/logger';
const log = new Logger();
log.info("This is info log !");
log.error("This is error log !");
log.warn("This is warning log !");
log.debug("This is debug log !");
log.trace("This is trace log !");