Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

narrolog

1.2.4 • Public • Published

narrolog

a simple log tool based on nodejs.

config

call setOptions to config narrolog.

{
    "level": 3, // debug level 0-never, 1-only error, 2-error and warning, 3-all
    "mode": 0, // log mode 0-console, 1-file
    "logFile": "" // log file path, only when mode == 1 eg: log/error.log
}

Keywords

Install

npm i narrolog

DownloadsWeekly Downloads

8

Version

1.2.4

License

MIT

Last publish

Collaborators

  • avatar