1.0.11 • Published 3 years ago

weakjs v1.0.11

Weekly downloads
13
License
ISC
Repository
github
Last release
3 years ago

Installation

npm install weakjs --save

or using yarn

yarn add weakjs

Description

All the file will automatically save to app root directory's logs folder.
Info Log Debug will save to stdlog.log
Error will save to stderr.log

Usage

import LoggerRegister from 'weakjs';

// rolling: "daily" / "weekly" / "monthly"
const logger = new Logger({ saveToFile: true, maxNumberOfFiles: 7, rolling: 'weekly' });

logger.info({ a: 1, b: 2 });
logger.error(new Error('Test Error'), 'ERROR');

Result

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago