logging-objects-with-schema 1.0.0__tar.gz → 1.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.
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/PKG-INFO +1 -1
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/pyproject.toml +5 -35
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/src/logging_objects_with_schema/schema_logger.py +1 -2
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/LICENSE +0 -0
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/README.md +0 -0
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/src/logging_objects_with_schema/__init__.py +0 -0
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/src/logging_objects_with_schema/errors.py +0 -0
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/src/logging_objects_with_schema/py.typed +0 -0
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/src/logging_objects_with_schema/schema_applier.py +0 -0
- {logging_objects_with_schema-1.0.0 → logging_objects_with_schema-1.0.1}/src/logging_objects_with_schema/schema_loader.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: logging-objects-with-schema
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Proxy logging wrapper that validates extra fields against a JSON schema.
|
|
5
5
|
Keywords: logging,schema,validation,structured-logging,structured-logs
|
|
6
6
|
Author: Dmitrii Safronov
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "logging-objects-with-schema"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.1"
|
|
8
8
|
description = "Proxy logging wrapper that validates extra fields against a JSON schema."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -54,47 +54,21 @@ dev = [
|
|
|
54
54
|
|
|
55
55
|
[tool.isort]
|
|
56
56
|
profile = "black"
|
|
57
|
-
line_length = 88
|
|
58
|
-
multi_line_output = 3
|
|
59
57
|
|
|
60
58
|
[tool.black]
|
|
61
59
|
line-length = 88
|
|
62
60
|
include = "\\.pyi?$"
|
|
63
|
-
extend-exclude = """
|
|
64
|
-
/(
|
|
65
|
-
\\.eggs
|
|
66
|
-
| \\.git
|
|
67
|
-
| \\.hg
|
|
68
|
-
| \\.mypy_cache
|
|
69
|
-
| \\.tox
|
|
70
|
-
| \\.venv
|
|
71
|
-
| build
|
|
72
|
-
| dist
|
|
73
|
-
)/
|
|
74
|
-
"""
|
|
75
61
|
|
|
76
62
|
[tool.flake8]
|
|
77
63
|
max-line-length = 88
|
|
78
64
|
extend-ignore = [ "E203", "W503" ]
|
|
79
|
-
exclude = [ ".venv"
|
|
65
|
+
exclude = [ ".venv" ]
|
|
80
66
|
|
|
81
67
|
[tool.mypy]
|
|
82
|
-
|
|
83
|
-
|
|
68
|
+
files = [ "src" ]
|
|
69
|
+
strict = true
|
|
84
70
|
warn_unused_configs = true
|
|
85
|
-
disallow_untyped_defs = true
|
|
86
|
-
disallow_incomplete_defs = true
|
|
87
|
-
check_untyped_defs = true
|
|
88
|
-
disallow_untyped_decorators = true
|
|
89
|
-
no_implicit_optional = true
|
|
90
|
-
warn_redundant_casts = true
|
|
91
|
-
warn_unused_ignores = true
|
|
92
|
-
warn_no_return = true
|
|
93
71
|
warn_unreachable = true
|
|
94
|
-
strict_equality = true
|
|
95
|
-
|
|
96
|
-
[tool.bandit]
|
|
97
|
-
exclude_dirs = [ ".venv", "__pycache__", ".git", "htmlcov", "tests" ]
|
|
98
72
|
|
|
99
73
|
[tool.coverage.run]
|
|
100
74
|
source = [ "src" ]
|
|
@@ -103,11 +77,8 @@ branch = true
|
|
|
103
77
|
[tool.coverage.report]
|
|
104
78
|
fail_under = 100
|
|
105
79
|
exclude_lines = [
|
|
106
|
-
"def __repr__",
|
|
107
|
-
"if self\\.debug",
|
|
108
80
|
"raise AssertionError",
|
|
109
81
|
"raise NotImplementedError",
|
|
110
|
-
"if 0:",
|
|
111
82
|
"if __name__ == .__main__.:",
|
|
112
83
|
"@(abc\\.)?abstractmethod"
|
|
113
84
|
]
|
|
@@ -119,6 +90,5 @@ directory = "htmlcov"
|
|
|
119
90
|
|
|
120
91
|
[tool.vulture]
|
|
121
92
|
min_confidence = 80
|
|
122
|
-
exclude = [ "__pycache__" ]
|
|
123
93
|
ignore_names = [ "cls" ]
|
|
124
|
-
paths = [ "src"
|
|
94
|
+
paths = [ "src" ]
|
|
@@ -185,7 +185,6 @@ class SchemaLogger(logging.Logger):
|
|
|
185
185
|
sinfo, # sinfo - stack info from caller
|
|
186
186
|
)
|
|
187
187
|
try:
|
|
188
|
-
self.
|
|
188
|
+
self.handle(error_record)
|
|
189
189
|
except Exception:
|
|
190
|
-
# If handler failed, log error to stderr (standard logging behavior)
|
|
191
190
|
sys.stderr.write(f"Error in logging handler: {error_record}\n")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|