More precise time for python-bunyan logger?
<p>I've been using <code>bunyan</code> logger for <code>nodejs</code>, so when I had to program in <code>python</code> again I went out and found a compatible logger for <code>python</code>.</p>

<p><a href="https://github.com/Sagacify/logger-python" rel="nofollow">https://github.com/Sagacify/logger-python</a></p>

<p><a href="https://pypi.python.org/pypi/bunyan/0.1.2" rel="nofollow">https://pypi.python.org/pypi/bunyan/0.1.2</a></p>

<p>The problem is, this formatter only log time to second but I need at least millisecond precision. What would be the easiest way of achieving this?</p>

<p>Milliseconds would be a bit of a hack, but you can add microseconds really easily.</p>

<p>Here:</p>

<p><a href="https://github.com/Sagacify/logger-python/blob/master/bunyan/formatter.py#L106" rel="nofollow">https://github.com/Sagacify/logger-python/blob/master/bunyan/formatter.py#L106</a></p>

<p>You would need to replace "%Y-%m-%dT%H:%M:%SZ" by "%Y-%m-%dT%H:%M:%S%fZ"</p>

<p>Notice the added %f . 
(I'm actually the maintainer of saga-logger and we should be doing this as well but I haven't had the time to do it as of now.)</p>

python logging bunyan