testarmada-midway-logger
v1.0.1
Published
Logging module for Midway products
Downloads
724
Maintainers
Readme
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/