mozilla/browserid — Issue #541: Logging: Think about adding date/time stamps to all log entries
Author: jbonacci
Created: 2011-11-08 00:04:45+00:00
State: open

Dev just opened Issue 537: get __heartbeat__ out of logs
This makes up most of the log entries.
But these entries also contain date and time stamps, as do the following types of messages:
GETs
POSTs
HTTP-Monitor (another type of GET in browserid.log)

I want to make sure there is enough information in the logs to do some decent debug if errors or warnings show up.

So, we should think about adding full date and time information to the following types of messages:
browserid.log:
1. {"level":"info","message": BLAH}
Examples:
{"level":"info","message":"delivering email via SMTP host: smtp.socketlabs.com"}
{"level":"info","message":"authenticating to email host as morgamic"}
{"level":"info","message":"browserid server starting up"}
{"level":"info","message":"running on http://127.0.0.1:62700"}

2. {"level":"debug","message": BLAH}
Examples:
{"level":"debug","message":"listing emails for svtester123@gmail.com"}
{"level":"debug","message":"user is authenticated"}

Similar for verifier.log:
{"level":"debug","message": BLAH}

And for keysigner.log:
{"level":"info","message": BLAH}
{"level":"warn","message": BLAH}