Closed jacobbridges closed 8 years ago
Crappy. I'll have a look.
...Or you can make a pull request. :P
Yeah I tried editing it lol. But now the PUT request logs have two newlines...so I'm not sure what's going on. I'll give it another look.
I'm pretty sure this isn't an express-winston
thing - we don't put newlines in there anywhere.
What OS are you using?
I've tried it on Ubuntu Trusty and OS X 10.9.5. Both have the same result.
Are you doing anything else with winston
? Any other modules, any customizations, or anything?
Did you ever resolve this, or figure out what it was?
Closed due to inactivity. Doesn't seem to be a problem in express-winston
itself.
I am using this awesome logger in my express app. But when I start my express server and hit an endpoint, the debug info which is showing up in the console looks like this:
See the error? It looks like every GET request log is not prepended with a newline character. I looked into the source code and tried to edit line 246 of express-winston/index.js
After that edit, my output looked like this:
So yeah.. somewhere in the code the GET request is not getting a newline.
I am using version 0.3.1 of express-winston, and this is the configuration I am using for the logger: