8.5.0 • Published 15 days ago
imergo-logger v8.5.0
imergo-logger
This module is a generic winston logger wrapper for our imergo-frameworks. It is a globally configurable logger via environment variables, with default values.
Install
npm install imergo-logger
Usage
import Logger from "imergo-logger";
const logger = Logger(label | config);
logger.error("This is an error message");
Where:
label
: standard descriptive stringconfig
: standard winston configuration object
Environment variables
Variable | Description | Default |
---|---|---|
NODE_DEBUG | Comma-separated list of module names to be debugged (it accepts wildcards) | None |
NODE_IMERGO_LOGCONSOLE | When false , it deactivates console logging | true |
NODE_IMERGO_LOGDIR | Directory where to store logs | $HOME/.logs in POSIX systems or %USERPROFILE%\.logs in Windows |
NODE_IMERGO_LOGFILE | Name of the log file | imergo.log |
Testing
npm test
8.5.0
15 days ago
8.4.0
7 months ago
8.3.0
8 months ago
8.2.0
8 months ago
8.1.0
9 months ago
8.0.1
9 months ago
8.0.0
9 months ago
7.0.0
2 years ago
6.1.0
2 years ago
6.3.0
2 years ago
6.2.0
2 years ago
6.5.0
2 years ago
6.4.0
2 years ago
6.0.0
3 years ago
5.2.0
4 years ago
5.0.3
4 years ago
5.1.0
4 years ago
5.0.2
4 years ago
5.0.1
4 years ago
5.0.0
4 years ago
4.0.0
7 years ago