Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 484 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 484 Bytes

@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');