@anmiles/logger
v7.0.2
Published
Logging data with timestamp into console and/or file
Downloads
135
Readme
@anmiles/logger
Logging data with timestamp into console and/or file
Installation
npm install @anmiles/logger
Usage
Logging to screen and file system
import { Logger } from '@anmiles/logger';
const logger = new Logger({ root: '/log/app', groupByDate: true, showDebug: true });
logger.error('Error message with stack trace');
Logging to screen only
import { error } from '@anmiles/logger';
error('Error message with stack trace');