diff --git a/index.js b/index.js index ff50328..e820225 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,8 @@ const path = require('path'); const winston = require('winston'); +// TODO File logging does not default to rollingFile logging, and instead just creates one giant file + const cwd = process.cwd(); colors.enabled = true; const transportDefaults = { @@ -141,7 +143,7 @@ class Logger { module.exports.requests.info( '%s %s id:%s in:%s out:%s time:%s %s (%s/%s)', res.statusCode, - req.method, + _.padEnd(req.method, 5), _.padEnd(req.id, 10), _.padEnd(req.socket.bytesRead, 5), _.padEnd(req.socket.bytesWritten, 5), diff --git a/package.json b/package.json index 9bda2cd..7985017 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cheevr/logging", - "version": "1.1.1", + "version": "1.1.2", "description": "A simple logging wrapper around winstin", "main": "index.js", "repository": {