dbt-labs / docs.getdbt.com

The code behind docs.getdbt.com
https://docs.getdbt.com/
Apache License 2.0
113 stars 863 forks source link

[Core] Configurability of the timestamps in logs #5651

Open dbeatty10 opened 3 weeks ago

dbeatty10 commented 3 weeks ago

Link to the page(s) on docs.getdbt.com requiring updates

https://docs.getdbt.com/reference/global-configs/logs#log-formatting

Tell us more about this update

Consider adding this information more explicitly (rather than just showing via the examples).

There is some of amount of configurability of the time zone and precision of timestamps via the LOG_FORMAT and LOG_FORMAT_FILE configs. Here's a brief summary:

Log format Time zone Aware vs. naive Precision
text UTC naive timestamp second
debug system local time zone naive timestamp microsecond
json UTC aware timestamp microsecond

There's some more nitty-gritty code details discussed here.

Reviewers/Stakeholders/SMEs

📆 Timestamps Doug

Related GitHub issues

Additional information

No response