You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-2Lines changed: 42 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ All features can be fully configured from the configuration file.
17
17
18
18
**NOTE:** only python 3 is supported
19
19
20
-
:warning:**Version 3.x.x BREAKING CHANGES** see [Breaking Changes](#version-3xx-breaking-changes)
20
+
:warning:**Version 5.x.x BREAKING CHANGES** see [Breaking Changes](#version-5xx-breaking-changes)
21
21
22
22
## Table of content
23
23
@@ -67,7 +67,9 @@ All features can be fully configured from the configuration file.
67
67
-[Case 7. Add all Log Extra as Dictionary to the Standard Formatter (including Django log extra)](#case-7-add-all-log-extra-as-dictionary-to-the-standard-formatter-including-django-log-extra)
68
68
-[Case 8. Add Specific Log Extra to the Standard Formatter](#case-8-add-specific-log-extra-to-the-standard-formatter)
69
69
-[Case 9. Django add request info to all log records](#case-9-django-add-request-info-to-all-log-records)
70
+
-[Case 10. Add stack traces to log records](#case-10-add-stack-traces-to-log-records)
Or you simply call `logger.exception('Your message')` which automatically adds the exc_info. However this one is logging as in level `ERROR` and not `CRITICAL`.
1385
+
1386
+
This will make the stack info available for the formatter. It can be used for instance like follows:
Previously, the fields `exc_text` and `stack_info` were always added to the log message if they existed. This behavior is slightly changed: instead of adding them to the message in any case, they are added to the record so that they can be configured via the `fmt` field in the logging configuration as described in [#case-10-add-stack-traces-to-log-records].
1412
+
1373
1413
### Version 4.x.x Breaking Changes
1374
1414
1375
1415
From version 3.x.x to version 4.x.x there is the following breaking change:
0 commit comments