File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -13,24 +13,35 @@ This repository is a maintained fork of [madzak/python-json-logger](https://gith
13
13
14
14
## Installation
15
15
16
- ### Install via pip / PyPI
16
+ Note: All versions of this fork use version ` >=3.0.0 ` - to use pre-fork versions use ` python-json-logger<3.0.0 ` .
17
17
18
- Until the PEP 541 request is complete you will need to use one of the alternative methods below.
18
+ ### Install via pip
19
19
20
- ### Install from GitHub
20
+ Until the PEP 541 request is complete you will need to install directly from github.
21
+
22
+ #### Install from GitHub
23
+
24
+ To install from releases:
25
+
26
+ ``` shell
27
+ # 3.0.0 wheel
28
+ pip install ' python-json-logger@https://github.com/nhairs/python-json-logger/releases/download/v3.0.0/python_json_logger-3.0.0-py3-none-any.whl'
29
+ ```
30
+
31
+ To install from head:
21
32
22
33
``` shell
23
34
pip install ' python-json-logger@git+https://github.com/nhairs/python-json-logger.git'
24
35
```
25
36
26
- To install a specific version:
37
+ To install a specific version from a tag :
27
38
28
39
``` shell
40
+ # Last released version before forking
29
41
pip install ' python-json-logger@git+https://github.com/nhairs/python-json-logger.git@v2.0.7'
30
42
```
31
43
32
-
33
- ### Install from Source
44
+ #### Install from Source
34
45
35
46
``` shell
36
47
git clone https://github.com/nhairs/python-json-logger.git
@@ -44,8 +55,6 @@ pip install -e .
44
55
45
56
Json outputs are provided by the JsonFormatter logging formatter. You can add the custom formatter like below:
46
57
47
- ** Please note: version 0.1.0 has changed the import structure, please update to the following example for proper importing**
48
-
49
58
``` python
50
59
import logging
51
60
from pythonjsonlogger import jsonlogger
You can’t perform that action at this time.
0 commit comments