node-spdlog-daily

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i node-spdlog-daily

Weekly Downloads

4

Version

1.0.5

License

ISC

Unpacked Size

6.75 MB

Total Files

156

Last publish

Collaborators

  • zhangdz