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
**Important:** This repository is a maintained fork of [madzak/python-json-logger](https://github.com/madzak/python-json-logger) pending [a PEP 541 request](https://github.com/pypi/support/issues/3607) for the PyPI package. The future direction of the project is being discussed [here](https://github.com/nhairs/python-json-logger/issues/1).
5
+
# Python JSON Logger
6
6
7
-
Overview
8
-
=======
9
7
This library is provided to allow standard python logging to output log data as json objects. With JSON we can make our logs more readable by machines and we can stop writing custom parsers for syslog type records.
10
8
11
-
Installing
12
-
==========
13
9
14
-
Until the PEP 541 request is complete you will need to find your own means of installing the package (e.g. building and storing in a private package repository).
10
+
### 🚨 Important 🚨
15
11
16
-
Usage
17
-
=====
12
+
This repository is a maintained fork of [madzak/python-json-logger](https://github.com/madzak/python-json-logger) pending [a PEP 541 request](https://github.com/pypi/support/issues/3607) for the PyPI package. The future direction of the project is being discussed [here](https://github.com/nhairs/python-json-logger/issues/1).
18
13
19
-
## Integrating with Python's logging framework
14
+
## Installation
15
+
16
+
### Install via pip / PyPI
17
+
18
+
Until the PEP 541 request is complete you will need to use one of the alternative methods below.
To use the module with a config file using the [`fileConfig` function](https://docs.python.org/3/library/logging.config.html#logging.config.fileConfig), use the class `pythonjsonlogger.jsonlogger.JsonFormatter`. Here is a sample config file.
99
123
@@ -126,8 +150,7 @@ format = %(message)s
126
150
class = pythonjsonlogger.jsonlogger.JsonFormatter
127
151
```
128
152
129
-
Example Output
130
-
==============
153
+
## Example Output
131
154
132
155
Sample JSON with a full formatter (basically the log message from the unit test). Every log message will appear on 1 line like a typical logger.
133
156
@@ -155,10 +178,13 @@ Sample JSON with a full formatter (basically the log message from the unit test)
155
178
}
156
179
```
157
180
158
-
Author and Maintainers
159
-
======================
181
+
## License
182
+
183
+
This project is licensed under the BSD 2 Clause License - see [`LICENSE`](https://github.com/nhairs/python-json-logger/blob/main/LICENSE)
184
+
185
+
## Authors and Maintainers
160
186
161
-
This project was originally authored by [Zakaria Zajac](https://github.com/madzak).
187
+
This project was originally authored by [Zakaria Zajac](https://github.com/madzak) and our wonderful [contributors](https://github.com/nhairs/python-json-logger/graphs/contributors)
0 commit comments