This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

ioant-logger

0.1.2 • Public • Published

npm-package-logger

The logger package is used for configuring the winston logging module.

How to use

Load the module and set the logging configuration arguments.

var Logger = require('ioant-logger');
// setup(path_to_log_folder, log_level_test, log_level_production, log_level_console)
Logger.setup('logs/', 'debug', 'debug', 'debug');

Available log levels are:

  • error
  • warn
  • info
  • verbose
  • debug
  • silly

Example of an application logging all logs of warn and above to file in production. When testing we wan't to store everything to file but only errors to console

var Logger = require('ioant-logger');
// setup(path_to_log_folder, log_level_test, log_level_production, log_level_console)
Logger.setup('logs/', 'silly', 'warn', 'error');

Readme

Keywords

Package Sidebar

Install

npm i ioant-logger

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

3.95 kB

Total Files

5

Last publish

Collaborators

  • asaxen