A basic logger for Node.js applications. It has three logger transports set up. The first outputs to the console, the second outputs only errors to a file, and the third outputs down to the info level to a log file.
The level that the console transport logs to is set by the LOG_LEVEL
environment variable. If no level is set, it will default to 'info'.
npm install @josephdaw/logger
const logger = require('@josephdaw/logger');
Please report any bugs or feature requests via GitHub Issues.
Please report any security issues to dev@josephdaw.com. Find more information in our Security Policy
All development of this project happens through GitHub. We welcome constructive collaboration from the community to help implement new features or fix bugs. For more information please read our Contribution Guide
Every significant change is documented in the changelog file.
This project is released under the MIT License.