python-json-logger 3.0.0__tar.gz → 3.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-json-logger-3.0.0/src/python_json_logger.egg-info → python-json-logger-3.0.1}/PKG-INFO +20 -9
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/README.md +19 -8
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/pyproject.toml +1 -13
- python-json-logger-3.0.1/setup.cfg +4 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1/src/python_json_logger.egg-info}/PKG-INFO +20 -9
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/python_json_logger.egg-info/SOURCES.txt +0 -1
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/pythonjsonlogger/jsonlogger.py +2 -2
- python-json-logger-3.0.0/setup.cfg +0 -34
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/LICENSE +0 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/MANIFEST.in +0 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/python_json_logger.egg-info/dependency_links.txt +0 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/python_json_logger.egg-info/requires.txt +0 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/python_json_logger.egg-info/top_level.txt +0 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/pythonjsonlogger/__init__.py +0 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/pythonjsonlogger/py.typed +0 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/tests/__init__.py +0 -0
- {python-json-logger-3.0.0 → python-json-logger-3.0.1}/tests/test_jsonlogger.py +0 -0
{python-json-logger-3.0.0/src/python_json_logger.egg-info → python-json-logger-3.0.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-json-logger
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1
|
|
4
4
|
Summary: JSON Log Formatter for the Python Logging Package
|
|
5
5
|
Author-email: Zakaria Zajac <zak@madzak.com>
|
|
6
6
|
Maintainer-email: Nicholas Hairs <info+python-json-logger@nicholashairs.com>
|
|
@@ -43,26 +43,39 @@ This library is provided to allow standard python logging to output log data as
|
|
|
43
43
|
|
|
44
44
|
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).
|
|
45
45
|
|
|
46
|
+
[**Changelog**](https://github.com/nhairs/python-json-logger/blob/main/CHANGELOG.md)
|
|
47
|
+
|
|
46
48
|
## Installation
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
Note: All versions of this fork use version `>=3.0.0` - to use pre-fork versions use `python-json-logger<3.0.0`.
|
|
51
|
+
|
|
52
|
+
### Install via pip
|
|
53
|
+
|
|
54
|
+
Until the PEP 541 request is complete you will need to install directly from github.
|
|
49
55
|
|
|
50
|
-
|
|
56
|
+
#### Install from GitHub
|
|
51
57
|
|
|
52
|
-
|
|
58
|
+
To install from releases:
|
|
59
|
+
|
|
60
|
+
```shell
|
|
61
|
+
# 3.0.0 wheel
|
|
62
|
+
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'
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
To install from head:
|
|
53
66
|
|
|
54
67
|
```shell
|
|
55
68
|
pip install 'python-json-logger@git+https://github.com/nhairs/python-json-logger.git'
|
|
56
69
|
```
|
|
57
70
|
|
|
58
|
-
To install a specific version:
|
|
71
|
+
To install a specific version from a tag:
|
|
59
72
|
|
|
60
73
|
```shell
|
|
74
|
+
# Last released version before forking
|
|
61
75
|
pip install 'python-json-logger@git+https://github.com/nhairs/python-json-logger.git@v2.0.7'
|
|
62
76
|
```
|
|
63
77
|
|
|
64
|
-
|
|
65
|
-
### Install from Source
|
|
78
|
+
#### Install from Source
|
|
66
79
|
|
|
67
80
|
```shell
|
|
68
81
|
git clone https://github.com/nhairs/python-json-logger.git
|
|
@@ -76,8 +89,6 @@ pip install -e .
|
|
|
76
89
|
|
|
77
90
|
Json outputs are provided by the JsonFormatter logging formatter. You can add the custom formatter like below:
|
|
78
91
|
|
|
79
|
-
**Please note: version 0.1.0 has changed the import structure, please update to the following example for proper importing**
|
|
80
|
-
|
|
81
92
|
```python
|
|
82
93
|
import logging
|
|
83
94
|
from pythonjsonlogger import jsonlogger
|
|
@@ -11,26 +11,39 @@ This library is provided to allow standard python logging to output log data as
|
|
|
11
11
|
|
|
12
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).
|
|
13
13
|
|
|
14
|
+
[**Changelog**](https://github.com/nhairs/python-json-logger/blob/main/CHANGELOG.md)
|
|
15
|
+
|
|
14
16
|
## Installation
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
Note: All versions of this fork use version `>=3.0.0` - to use pre-fork versions use `python-json-logger<3.0.0`.
|
|
19
|
+
|
|
20
|
+
### Install via pip
|
|
21
|
+
|
|
22
|
+
Until the PEP 541 request is complete you will need to install directly from github.
|
|
17
23
|
|
|
18
|
-
|
|
24
|
+
#### Install from GitHub
|
|
19
25
|
|
|
20
|
-
|
|
26
|
+
To install from releases:
|
|
27
|
+
|
|
28
|
+
```shell
|
|
29
|
+
# 3.0.0 wheel
|
|
30
|
+
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'
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
To install from head:
|
|
21
34
|
|
|
22
35
|
```shell
|
|
23
36
|
pip install 'python-json-logger@git+https://github.com/nhairs/python-json-logger.git'
|
|
24
37
|
```
|
|
25
38
|
|
|
26
|
-
To install a specific version:
|
|
39
|
+
To install a specific version from a tag:
|
|
27
40
|
|
|
28
41
|
```shell
|
|
42
|
+
# Last released version before forking
|
|
29
43
|
pip install 'python-json-logger@git+https://github.com/nhairs/python-json-logger.git@v2.0.7'
|
|
30
44
|
```
|
|
31
45
|
|
|
32
|
-
|
|
33
|
-
### Install from Source
|
|
46
|
+
#### Install from Source
|
|
34
47
|
|
|
35
48
|
```shell
|
|
36
49
|
git clone https://github.com/nhairs/python-json-logger.git
|
|
@@ -44,8 +57,6 @@ pip install -e .
|
|
|
44
57
|
|
|
45
58
|
Json outputs are provided by the JsonFormatter logging formatter. You can add the custom formatter like below:
|
|
46
59
|
|
|
47
|
-
**Please note: version 0.1.0 has changed the import structure, please update to the following example for proper importing**
|
|
48
|
-
|
|
49
60
|
```python
|
|
50
61
|
import logging
|
|
51
62
|
from pythonjsonlogger import jsonlogger
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-json-logger"
|
|
7
|
-
version = "3.0.
|
|
7
|
+
version = "3.0.1"
|
|
8
8
|
description = "JSON Log Formatter for the Python Logging Package"
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "Zakaria Zajac", email = "zak@madzak.com"},
|
|
@@ -52,18 +52,6 @@ test = [
|
|
|
52
52
|
"pytest",
|
|
53
53
|
]
|
|
54
54
|
|
|
55
|
-
#docs = [
|
|
56
|
-
# "black",
|
|
57
|
-
# "mkdocs",
|
|
58
|
-
# "mkdocs-material>=8.5",
|
|
59
|
-
# "mkdocs-awesome-pages-plugin",
|
|
60
|
-
# "mdx_truly_sane_lists",
|
|
61
|
-
# "mkdocstrings[python]",
|
|
62
|
-
# "mkdocs-gen-files",
|
|
63
|
-
# "mkdocs-literate-nav",
|
|
64
|
-
# "mike",
|
|
65
|
-
#]
|
|
66
|
-
|
|
67
55
|
[tool.setuptools.packages.find]
|
|
68
56
|
where = ["src"]
|
|
69
57
|
include = ["pythonjsonlogger*"]
|
{python-json-logger-3.0.0 → python-json-logger-3.0.1/src/python_json_logger.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-json-logger
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1
|
|
4
4
|
Summary: JSON Log Formatter for the Python Logging Package
|
|
5
5
|
Author-email: Zakaria Zajac <zak@madzak.com>
|
|
6
6
|
Maintainer-email: Nicholas Hairs <info+python-json-logger@nicholashairs.com>
|
|
@@ -43,26 +43,39 @@ This library is provided to allow standard python logging to output log data as
|
|
|
43
43
|
|
|
44
44
|
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).
|
|
45
45
|
|
|
46
|
+
[**Changelog**](https://github.com/nhairs/python-json-logger/blob/main/CHANGELOG.md)
|
|
47
|
+
|
|
46
48
|
## Installation
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
Note: All versions of this fork use version `>=3.0.0` - to use pre-fork versions use `python-json-logger<3.0.0`.
|
|
51
|
+
|
|
52
|
+
### Install via pip
|
|
53
|
+
|
|
54
|
+
Until the PEP 541 request is complete you will need to install directly from github.
|
|
49
55
|
|
|
50
|
-
|
|
56
|
+
#### Install from GitHub
|
|
51
57
|
|
|
52
|
-
|
|
58
|
+
To install from releases:
|
|
59
|
+
|
|
60
|
+
```shell
|
|
61
|
+
# 3.0.0 wheel
|
|
62
|
+
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'
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
To install from head:
|
|
53
66
|
|
|
54
67
|
```shell
|
|
55
68
|
pip install 'python-json-logger@git+https://github.com/nhairs/python-json-logger.git'
|
|
56
69
|
```
|
|
57
70
|
|
|
58
|
-
To install a specific version:
|
|
71
|
+
To install a specific version from a tag:
|
|
59
72
|
|
|
60
73
|
```shell
|
|
74
|
+
# Last released version before forking
|
|
61
75
|
pip install 'python-json-logger@git+https://github.com/nhairs/python-json-logger.git@v2.0.7'
|
|
62
76
|
```
|
|
63
77
|
|
|
64
|
-
|
|
65
|
-
### Install from Source
|
|
78
|
+
#### Install from Source
|
|
66
79
|
|
|
67
80
|
```shell
|
|
68
81
|
git clone https://github.com/nhairs/python-json-logger.git
|
|
@@ -76,8 +89,6 @@ pip install -e .
|
|
|
76
89
|
|
|
77
90
|
Json outputs are provided by the JsonFormatter logging formatter. You can add the custom formatter like below:
|
|
78
91
|
|
|
79
|
-
**Please note: version 0.1.0 has changed the import structure, please update to the following example for proper importing**
|
|
80
|
-
|
|
81
92
|
```python
|
|
82
93
|
import logging
|
|
83
94
|
from pythonjsonlogger import jsonlogger
|
|
@@ -124,7 +124,7 @@ class JsonFormatter(logging.Formatter):
|
|
|
124
124
|
*args: Any,
|
|
125
125
|
json_default: OptionalCallableOrStr = None,
|
|
126
126
|
json_encoder: OptionalCallableOrStr = None,
|
|
127
|
-
|
|
127
|
+
json_serializer: Union[Callable, str] = json.dumps,
|
|
128
128
|
json_indent: Optional[Union[int, str]] = None,
|
|
129
129
|
json_ensure_ascii: bool = True,
|
|
130
130
|
prefix: str = "",
|
|
@@ -157,7 +157,7 @@ class JsonFormatter(logging.Formatter):
|
|
|
157
157
|
"""
|
|
158
158
|
self.json_default = self._str_to_fn(json_default)
|
|
159
159
|
self.json_encoder = self._str_to_fn(json_encoder)
|
|
160
|
-
self.json_serializer = self._str_to_fn(
|
|
160
|
+
self.json_serializer = self._str_to_fn(json_serializer)
|
|
161
161
|
self.json_indent = json_indent
|
|
162
162
|
self.json_ensure_ascii = json_ensure_ascii
|
|
163
163
|
self.prefix = prefix
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
[mypy]
|
|
2
|
-
mypy_path = src
|
|
3
|
-
namespace_packages = true
|
|
4
|
-
disallow_any_unimported = true
|
|
5
|
-
disallow_any_expr = false
|
|
6
|
-
disallow_any_decorated = true
|
|
7
|
-
disallow_any_explicit = false
|
|
8
|
-
disallow_any_generics = false
|
|
9
|
-
disallow_subclassing_any = true
|
|
10
|
-
disallow_untyped_calls = false
|
|
11
|
-
disallow_untyped_defs = false
|
|
12
|
-
disallow_incomplete_defs = true
|
|
13
|
-
check_untyped_defs = true
|
|
14
|
-
disallow_untyped_decorators = true
|
|
15
|
-
no_implicit_optional = true
|
|
16
|
-
warn_redundant_casts = true
|
|
17
|
-
warn_unused_ignores = true
|
|
18
|
-
warn_no_return = true
|
|
19
|
-
warn_return_any = true
|
|
20
|
-
warn_unreachable = true
|
|
21
|
-
implicit_reexport = true
|
|
22
|
-
strict_equality = true
|
|
23
|
-
show_error_context = true
|
|
24
|
-
show_column_numbers = true
|
|
25
|
-
show_error_codes = true
|
|
26
|
-
pretty = true
|
|
27
|
-
show_absolute_path = true
|
|
28
|
-
warn_unused_configs = true
|
|
29
|
-
verbosity = 0
|
|
30
|
-
|
|
31
|
-
[egg_info]
|
|
32
|
-
tag_build =
|
|
33
|
-
tag_date = 0
|
|
34
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/python_json_logger.egg-info/requires.txt
RENAMED
|
File without changes
|
{python-json-logger-3.0.0 → python-json-logger-3.0.1}/src/python_json_logger.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|