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
<ahref="https://travis-ci.com/Colin-b/logging_json"><imgalt="Number of tests"src="https://img.shields.io/badge/tests-15 passed-blue"></a>
8
+
<ahref="https://github.com/Colin-b/logging_json/actions"><imgalt="Number of tests"src="https://img.shields.io/badge/tests-17 passed-blue"></a>
9
9
<ahref="https://pypi.org/project/logging_json/"><imgalt="Number of downloads"src="https://img.shields.io/pypi/dm/logging_json"></a>
10
10
</p>
11
11
@@ -33,7 +33,7 @@ It must be a dictionary where keys are the keys to be appended to the resulting
33
33
34
34
#### Logging exceptions, a specific case
35
35
36
-
If an exception is loggued, the `exception` key will be appended to the resulting JSON dictionary.
36
+
If an exception is logged, the `exception` key will be appended to the resulting JSON dictionary.
37
37
38
38
This dictionary will contains 3 keys:
39
39
*`type`: The name of the exception class (useful when the message is blank).
@@ -56,6 +56,7 @@ The resulting JSON dictionary will be the one you provided (with the [additional
56
56
57
57
Anything not logged using a dictionary will be handled by the standard formatter and it can result in one of the 2 output:
58
58
* A JSON dictionary, if [additional fields](#adding-additional-fields-and-values) are set or if `extra` parameter is used while logging, with the message available in the `msg` key of the resulting JSON dictionary.
59
+
Default `msg` key name can be changed by `message_field_name` parameter of the `logging_json.JSONFormatter` instance.
59
60
* The formatted record, if no [additional fields](#adding-additional-fields-and-values) are set.
60
61
61
62
This handles the usual string logging as in the following:
@@ -88,24 +89,25 @@ You can configure your logging as advertise by python, by using the `logging.con
0 commit comments