-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Documentation
The documentation for logging formatters states that the parameter datefmt is "[a] format string in the given style" and "[the parameter style] only applies to fmt and datefmt". However, in formatTime the time ct is formatted time.strftime(datefmt, ct), not with self._style.format like in formatMessage. This means, for example, that despite using style="{" I still need to format the timestamp with "%Y-%m-%d %H:%M:%S%z".
Linked PRs
- gh-137985: correct description of Formatter's datefmt param in logging doc #138530
- [3.14] gh-137985: Correct description of Formatter's datefmt param in logging documentation (GH-138530) #138565
- [3.13] gh-137985: Correct description of Formatter's datefmt param in logging documentation (GH-138530) #138566
brianschubert
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
Status
Done
Status
Todo