npm.io
1.0.5 • Published 6 years ago

node-spdlog-daily

Licence
ISC
Version
1.0.5
Deps
2
Size
6.4 MB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

node-spdlog-daily

This is a node addon for spdlog daily file type

Installation

Install with npm:

$ npm install --save node-spdlog-daily

Example

const DailyLogger = require('node-spdlog-daily').DailyLogger

let logger = DailyLogger('daily_logger', 'daily.txt', 0, 0);
logger.info('sdscscs2222')

Start with NODE_ENV=production will logger to file, otherwise will call console.log