I've implemented the express logger and I'm adding the logger before any routes are added to my express app.
I see the logs being output to the console in exactly the format I desire, however the regular express logs for routes are being logged as well:
{"timestamp":1489696315967,"level":"INFO","message":"HTTP GET /wireless","req":{"query":{}},"responseTime":388,"statusCode":200,"method":"GET","url":"/wireless"}
GET /wireless 200 396ms - 100.12kb
Notice the first log line is in JSON format, and is how I want my logs to look. But the second line has the same log that express generates when hitting a route. I want to not log the second line.
I've gone through the documentation for this library and can't seem to find any way of disabling that. Am I missing something?
I've implemented the express logger and I'm adding the logger before any routes are added to my express app.
I see the logs being output to the console in exactly the format I desire, however the regular express logs for routes are being logged as well:
Notice the first log line is in JSON format, and is how I want my logs to look. But the second line has the same log that express generates when hitting a route. I want to not log the second line.
I've gone through the documentation for this library and can't seem to find any way of disabling that. Am I missing something?