@dineroregnskab/http-logging
v1.6.0
Published
Logging utilities for Node.js http package
Downloads
77
Keywords
Readme
@dineroregnskab/http-logging
Logging utilities for Node.js http package.
const { httpLogger } = require('@dineroregnskab/http-logging');
const http = require('http');
const app = http.createServer(httpLogger('ServiceName', '1.0.0', (req, res) => {
res.writeHead(200);
res.end('Hi there!');
}));
app.listen(3030);