1.0.1 • Published 6 years ago

testarmada-midway-logger v1.0.1

Weekly downloads
2,024
License
MIT
Repository
github
Last release
6 years ago

midway-logger

Logger for midway products

Usage:

It is possible to set the log level thru several options.

Option 1:

By simply setting the MIDWAY_LOG_LEVEL env variable to one of debug, info, warn, error or off.

MIDWAY_LOG_LEVEL=debug node [your-node-project]
Option 2:

By setting it directly via functions.

// Set log level
Logger.setLogLevel('debug');

// Get log level
Logger.getLogLevel();

// Reset log level
Logger.resetLogLevel();

Documentation in this project is licensed under Creative Commons Attribution 4.0 International License.Full details available at https://creativecommons.org/licenses/by/4.0/