zoro-log

0.0.5 • Public • Published

zoro-log

Lightweight file logging using log

log is an instance of log

Without configuration, it will write logs to folder './logs', each file per day.

// 1. require
var log = require('zoro-log')
// 2. config dir and filenameFormat for writing logs
log.config('logs', 'yyyy-MM-dd hh:mm:ss:SSS')
log.info('foo')

/zoro-log/

    Package Sidebar

    Install

    npm i zoro-log

    Weekly Downloads

    4

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • zyy7259