Python logging is outputting with the time 4 hours ahead of system
<p>My system is set to EDT in Linux, and I can confirm this in Python with datetime.now(). However the logger is outputting 4 hours ahead. What could be the cause of this?</p>

<p>EDIT: Logging config looks like this:</p>

<pre><code>logging.basicConfig(level=logging.DEBUG)
lf = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")

mylogger = logging.getLogger('mylogger')
mylogger .setLevel(logging.DEBUG)

lsh = logging.StreamHandler()
lsh.setLevel(logging.DEBUG)
lsh.setFormatter(lf)
mylogger.addHandler(lsh)
</code></pre>
