@anmiles/logger
TypeScript icon, indicating that this package has built-in type declarations

7.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @anmiles/logger

Weekly Downloads

4

Version

7.0.2

License

MIT

Unpacked Size

51.1 kB

Total Files

23

Last publish

Collaborators

  • anmiles