Is there a way to have the log lines preceded with the Eastern timezone? Currently local time.
Tried this since zipline uses it:
import pandas as pd
import logbook
logbook.set_datetime_format(lambda: pd.Timestamp.now(tz= 'US/Eastern'))
16 Error Importing logbook raised an ImportError. No modules or attributes with a similar name were found.
Lines look like this for me at market open, 06:31:
2019-03-22 06:31 trac:360 INFO .
One example of the problem: Two people from different parts of the world wanting to collaborate, pointing to a particular stock being traded at a certain time and the timestamps don't currently match up as reference points.
In eyeing global equity exchanges, also a useful user setting to have in place.
(Quite the visuals in that notebook by Jamie McCorriston posted May 2, 2018).
context.timezone = 'exchange_tz' # or local or like 'US/Eastern', with default as exchange_tz