Skip to content

Commit

Permalink
Merge branch '2.x' into emmett.butler/internal-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
emmettbutler committed Sep 29, 2023
2 parents 459a101 + 87f172c commit 30ad02f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ddtrace/contrib/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ def hello():
log.info('Hello, World!')
hello()
Note that most host based setups log by default to UTC time.
If the log timestamps aren't automatically in UTC, the formatter can be updated to use UTC::
import time
logging.Formatter.converter = time.gmtime
For more information, please see the attached guide on common timestamp issues:
https://docs.datadoghq.com/logs/guide/logs-not-showing-expected-timestamp/
"""

from ...internal.utils.importlib import require_modules
Expand Down

0 comments on commit 30ad02f

Please sign in to comment.