Skip to content

Commit ceb2842

Browse files
committed
Update for new pythonjsonlogger
1 parent bb3883c commit ceb2842

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.8.2
4+
rev: v0.8.3
55
hooks:
66
# Run the linter.
77
- id: ruff

annotated_logger/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class AnnotatedClass(Protocol[C_co]):
109109
},
110110
"formatters": {
111111
"annotated_formatter": {
112-
"class": "pythonjsonlogger.jsonlogger.JsonFormatter", # pragma: no mutate
112+
"class": "pythonjsonlogger.json.JsonFormatter", # pragma: no mutate
113113
"format": "{created} {levelname} {name} {message}", # pragma: no mutate
114114
"style": "{",
115115
},

example/logging_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
},
9494
"formatters": {
9595
"logging_config.annotated_formatter": {
96-
"class": "pythonjsonlogger.jsonlogger.JsonFormatter",
96+
"class": "pythonjsonlogger.json.JsonFormatter",
9797
# Note that this format string uses `time` which is set by the renamer
9898
# plugin. It also has `lvl` which is there strictly to test our fallback
9999
# to using `levelno` in the mocks to determine level.
@@ -116,7 +116,7 @@
116116
"style": "{",
117117
},
118118
"logging_config.weird_formatter": {
119-
"class": "pythonjsonlogger.jsonlogger.JsonFormatter",
119+
"class": "pythonjsonlogger.json.JsonFormatter",
120120
"format": "{time} {lvl} {name} {message}",
121121
"style": "{",
122122
},

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ keywords = [
1919
]
2020
dependencies = [
2121
"makefun",
22-
"python-json-logger",
22+
"python-json-logger>=3.1.0",
2323
"requests",
2424
# The mock makes use of this, but we really should separate the mock out into it's own package
2525
# That would allow the mock to be included in dev, not in prod

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ makefun==1.15.6
1717
# via hatch.envs.default
1818
pychoir==0.0.27
1919
# via hatch.envs.default
20-
python-json-logger==2.0.7
20+
python-json-logger==3.2.0
2121
# via hatch.envs.default
2222
requests==2.32.3
2323
# via hatch.envs.default

requirements/requirements-dev.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# - typing_extensions
1717
# - makefun
1818
# - pychoir
19-
# - python-json-logger
19+
# - python-json-logger>=3.1.0
2020
# - requests
2121
#
2222

@@ -95,7 +95,7 @@ pytest==8.3.4
9595
# pytest-randomly
9696
pytest-cov==6.0.0
9797
# via hatch.envs.dev
98-
pytest-freezer==0.4.8
98+
pytest-freezer==0.4.9
9999
# via hatch.envs.dev
100100
pytest-github-actions-annotate-failures==0.2.0
101101
# via hatch.envs.dev
@@ -105,7 +105,7 @@ pytest-randomly==3.16.0
105105
# via hatch.envs.dev
106106
python-dateutil==2.9.0.post0
107107
# via freezegun
108-
python-json-logger==2.0.7
108+
python-json-logger==3.2.0
109109
# via hatch.envs.dev
110110
pyyaml==6.0.2
111111
# via pre-commit
@@ -117,15 +117,15 @@ requests-mock==1.12.1
117117
# via hatch.envs.dev
118118
rich==13.9.4
119119
# via textual
120-
ruff==0.8.2
120+
ruff==0.8.3
121121
# via hatch.envs.dev
122122
setproctitle==1.3.4
123123
# via mutmut
124124
six==1.17.0
125125
# via
126126
# junit-xml
127127
# python-dateutil
128-
textual==0.89.1
128+
textual==1.0.0
129129
# via mutmut
130130
toml==0.10.2
131131
# via mutmut

0 commit comments

Comments
 (0)