getlogbook / logbook

A cool logging replacement for Python.
http://logbook.readthedocs.org
Other
1.48k stars 165 forks source link

Deprecate treating naive datetimes as UTC #353

Open RazerM opened 1 year ago

RazerM commented 1 year ago

LoggingHandler and RedirectLoggingHandler need to be able to convert LogRecord.time to a timestamp, but logbook.set_datetime_format means it is impossible to know what a naive datetime means.

Logbook should match the Python standard library and treat naive datetimes as local time.

Plan

This will be a breaking change, i.e. Logbook 2.0