@dineroregnskab/node-logging
v1.6.0
Published
Logging utilities for Node.js projects
Downloads
85
Keywords
Readme
@dineroregnskab/node-logging
Logging utilities for Node.js projects.
const { loggerFactory } = require('@dineroregnskab/node-logging');
const logger = loggerFactory.create('ServiceName', '1.0.0');
logger.info('Log message');
http.createServer((req, res) => {
logger.info('Log message with HTTP context', { req, res });
...
});