logxide 0.2.2__tar.gz → 0.4.0__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.
- {logxide-0.2.2 → logxide-0.4.0}/.github/workflows/benchmark.yml +2 -4
- {logxide-0.2.2 → logxide-0.4.0}/.github/workflows/ci.yml +9 -12
- {logxide-0.2.2 → logxide-0.4.0}/.github/workflows/publish.yml +16 -15
- {logxide-0.2.2 → logxide-0.4.0}/.pre-commit-config.yaml +1 -1
- {logxide-0.2.2 → logxide-0.4.0}/CHANGELOG.md +28 -1
- {logxide-0.2.2 → logxide-0.4.0}/CONTRIBUTING.md +6 -6
- {logxide-0.2.2 → logxide-0.4.0}/Cargo.lock +85 -148
- {logxide-0.2.2 → logxide-0.4.0}/Cargo.toml +2 -2
- {logxide-0.2.2 → logxide-0.4.0}/PKG-INFO +37 -26
- {logxide-0.2.2 → logxide-0.4.0}/README.md +32 -24
- logxide-0.4.0/SECURITY.md +255 -0
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/_bench_common.py +11 -1
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/basic_handlers_benchmark.py +113 -9
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/compare_loggers.py +59 -9
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/gil_benchmark.py +40 -8
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/perf_micro.py +27 -2
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/perf_vs_stdlib.py +48 -10
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/real_handlers_comparison.py +61 -9
- {logxide-0.2.2 → logxide-0.4.0}/docker-compose.yml +4 -4
- {logxide-0.2.2 → logxide-0.4.0}/docs/architecture.md +9 -12
- {logxide-0.2.2 → logxide-0.4.0}/docs/benchmarks.md +7 -4
- {logxide-0.2.2 → logxide-0.4.0}/docs/blog-preview/part1.md +8 -6
- {logxide-0.2.2 → logxide-0.4.0}/docs/blog-preview/part2.md +4 -2
- {logxide-0.2.2 → logxide-0.4.0}/docs/comparison-picologging.md +9 -5
- {logxide-0.2.2 → logxide-0.4.0}/docs/comparison-stdlib.md +5 -2
- {logxide-0.2.2 → logxide-0.4.0}/docs/comparison-structlog.md +2 -2
- {logxide-0.2.2 → logxide-0.4.0}/docs/comparison.md +12 -5
- {logxide-0.2.2 → logxide-0.4.0}/docs/compatibility.md +23 -10
- {logxide-0.2.2 → logxide-0.4.0}/docs/development.md +13 -9
- {logxide-0.2.2 → logxide-0.4.0}/docs/index.md +3 -1
- {logxide-0.2.2 → logxide-0.4.0}/docs/installation.md +9 -11
- {logxide-0.2.2 → logxide-0.4.0}/docs/integrations/django.md +73 -69
- {logxide-0.2.2 → logxide-0.4.0}/docs/integrations/fastapi.md +48 -34
- {logxide-0.2.2 → logxide-0.4.0}/docs/integrations/flask.md +44 -39
- {logxide-0.2.2 → logxide-0.4.0}/docs/integrations/index.md +16 -17
- {logxide-0.2.2 → logxide-0.4.0}/docs/integrations/sentry.md +84 -65
- {logxide-0.2.2 → logxide-0.4.0}/docs/performance-bottleneck-report-2026-07-13.md +2 -3
- {logxide-0.2.2 → logxide-0.4.0}/docs/reference.md +37 -47
- {logxide-0.2.2 → logxide-0.4.0}/docs/testing.md +19 -4
- {logxide-0.2.2 → logxide-0.4.0}/docs/third-party-compatibility.md +62 -61
- {logxide-0.2.2 → logxide-0.4.0}/docs/usage.md +62 -52
- {logxide-0.2.2 → logxide-0.4.0}/examples/django_integration.py +3 -1
- {logxide-0.2.2 → logxide-0.4.0}/examples/flask_integration.py +2 -1
- {logxide-0.2.2 → logxide-0.4.0}/examples/sentry_integration.py +19 -10
- {logxide-0.2.2 → logxide-0.4.0}/logxide/__init__.py +37 -6
- {logxide-0.2.2 → logxide-0.4.0}/logxide/__init__.pyi +19 -51
- {logxide-0.2.2 → logxide-0.4.0}/logxide/compat_functions.py +7 -3
- {logxide-0.2.2 → logxide-0.4.0}/logxide/compat_handlers.py +30 -94
- {logxide-0.2.2 → logxide-0.4.0}/logxide/config.py +2 -0
- {logxide-0.2.2 → logxide-0.4.0}/logxide/fast_logger_wrapper.py +1 -3
- {logxide-0.2.2 → logxide-0.4.0}/logxide/handlers.py +260 -53
- logxide-0.4.0/logxide/interceptor.py +19 -0
- {logxide-0.2.2 → logxide-0.4.0}/logxide/logger_wrapper.py +6 -9
- {logxide-0.2.2 → logxide-0.4.0}/logxide/module_system.py +174 -124
- {logxide-0.2.2 → logxide-0.4.0}/logxide/sentry_integration.py +44 -22
- {logxide-0.2.2 → logxide-0.4.0}/logxide/testing.py +2 -6
- {logxide-0.2.2 → logxide-0.4.0}/pyproject.toml +5 -6
- {logxide-0.2.2 → logxide-0.4.0}/pyrightconfig.json +1 -4
- {logxide-0.2.2 → logxide-0.4.0}/src/core.rs +470 -53
- {logxide-0.2.2 → logxide-0.4.0}/src/fast_logger.rs +38 -33
- {logxide-0.2.2 → logxide-0.4.0}/src/formatter.rs +33 -19
- {logxide-0.2.2 → logxide-0.4.0}/src/globals.rs +35 -11
- {logxide-0.2.2 → logxide-0.4.0}/src/handler.rs +301 -229
- {logxide-0.2.2 → logxide-0.4.0}/src/lib.rs +13 -1
- {logxide-0.2.2 → logxide-0.4.0}/src/py_handlers.rs +50 -47
- {logxide-0.2.2 → logxide-0.4.0}/src/py_logger.rs +244 -91
- {logxide-0.2.2 → logxide-0.4.0}/tests/conftest.py +113 -124
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_doc_codeblocks.py +19 -5
- logxide-0.4.0/tests/test_examples.py +194 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_formatter_planning.py +55 -0
- logxide-0.4.0/tests/test_generic_alias_compat.py +51 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_gil_scaling.py +6 -15
- logxide-0.4.0/tests/test_http_auth.py +27 -0
- logxide-0.4.0/tests/test_http_handler_features.py +143 -0
- logxide-0.4.0/tests/test_integration_examples.py +86 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_interceptor.py +20 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_native_fastpath.py +4 -7
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_optimizations.py +22 -5
- logxide-0.4.0/tests/test_overflow_flush.py +348 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_python315_compat.py +172 -10
- logxide-0.4.0/tests/test_review_benchmarks.py +787 -0
- logxide-0.4.0/tests/test_review_doc_collection.py +19 -0
- logxide-0.4.0/tests/test_review_docker_benchmark.py +41 -0
- logxide-0.4.0/tests/test_review_integration_docs.py +202 -0
- logxide-0.4.0/tests/test_review_native_errors.py +415 -0
- logxide-0.4.0/tests/test_review_package_tooling.py +47 -0
- logxide-0.4.0/tests/test_review_py_adapters.py +502 -0
- logxide-0.4.0/tests/test_review_release_ci.py +120 -0
- logxide-0.4.0/tests/test_review_routing_lifecycle.py +494 -0
- logxide-0.4.0/tests/test_review_security_docs.py +117 -0
- logxide-0.4.0/tests/test_review_test_quality.py +203 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_sentry_integration.py +186 -213
- logxide-0.4.0/tests/test_stdlib_shadow_compat.py +68 -0
- logxide-0.4.0/tests/test_timed_rotation.py +134 -0
- {logxide-0.2.2 → logxide-0.4.0}/uv.lock +29 -4
- logxide-0.2.2/SECURITY.md +0 -237
- logxide-0.2.2/logxide/interceptor.py +0 -74
- logxide-0.2.2/tests/test_examples.py +0 -336
- logxide-0.2.2/tests/test_http_auth.py +0 -73
- logxide-0.2.2/tests/test_http_handler_features.py +0 -229
- logxide-0.2.2/tests/test_integration_examples.py +0 -369
- logxide-0.2.2/tests/test_overflow_flush.py +0 -256
- logxide-0.2.2/tests/test_timed_rotation.py +0 -145
- {logxide-0.2.2 → logxide-0.4.0}/.dockerignore +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/.github/workflows/deploy_docs.yml +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/.gitignore +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/Dockerfile +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/LICENSE +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/MANIFEST.in +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/README.md +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/benchmark/logger_comparison_file_io_20251230_165703.json +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/clippy.toml +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/docker-run.sh +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/docs/assets/blog/blog-part1-cover.png +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/docs/assets/blog/blog-part2-cover.png +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/README.md +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/basic_usage.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/drop_in_replacement.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/fastapi_advanced.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/fastapi_demo.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/format_detailed.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/format_json.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/format_minimal.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/format_production.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/format_simple.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/format_threaded.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/minimal_dropin.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/performance_demo.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/simple_demo.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/examples/third_party_integration.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/logxide/py.typed +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/logxide/pytest_plugin.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/mkdocs.yml +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/rust-toolchain.toml +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/scripts/README.md +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/scripts/clippy-check.sh +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/scripts/publish.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/scripts/verify_package.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/social_preview.png +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/src/config.rs +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/src/filter.rs +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/standalone_test.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/test.db +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/docker-compose.sentry.yml +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_basic_logging.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_caller_info_scope.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_caplog_override.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_color_formatter.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_compat_functions.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_compatibility.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_config.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_handler_output.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_handler_routing.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_integration.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_integration_simple.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_logxide_testing.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tests/test_simple.py +0 -0
- {logxide-0.2.2 → logxide-0.4.0}/tmp_test_intercept.py +0 -0
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
strategy:
|
|
23
23
|
fail-fast: false
|
|
24
24
|
matrix:
|
|
25
|
-
python-version: ["3.12", "3.14"]
|
|
25
|
+
python-version: ["3.12", "3.14", "3.15"]
|
|
26
26
|
steps:
|
|
27
27
|
- uses: actions/checkout@v4
|
|
28
28
|
- name: Set up Python ${{ matrix.python-version }}
|
|
@@ -47,8 +47,6 @@ jobs:
|
|
|
47
47
|
uv venv
|
|
48
48
|
uv pip install maturin
|
|
49
49
|
- name: Build and install (release)
|
|
50
|
-
env:
|
|
51
|
-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
52
50
|
run: uv run maturin develop --release
|
|
53
51
|
- name: Confirm clean environment (no sentry-sdk)
|
|
54
52
|
run: |
|
|
@@ -64,5 +62,5 @@ jobs:
|
|
|
64
62
|
name: benchmark-results-py${{ matrix.python-version }}
|
|
65
63
|
path: |
|
|
66
64
|
benchmark/perf_results/
|
|
67
|
-
basic_handlers_benchmark_*.json
|
|
65
|
+
benchmark/basic_handlers_benchmark_*.json
|
|
68
66
|
if-no-files-found: ignore
|
|
@@ -54,7 +54,7 @@ jobs:
|
|
|
54
54
|
fail-fast: false
|
|
55
55
|
matrix:
|
|
56
56
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
57
|
-
python-version: ["3.12", "3.13", "3.14"]
|
|
57
|
+
python-version: ["3.12", "3.13", "3.14", "3.15"]
|
|
58
58
|
steps:
|
|
59
59
|
- uses: actions/checkout@v4
|
|
60
60
|
- name: Set up Python ${{ matrix.python-version }}
|
|
@@ -80,8 +80,6 @@ jobs:
|
|
|
80
80
|
uv venv
|
|
81
81
|
uv pip install maturin
|
|
82
82
|
- name: Build and install Python package with dev dependencies
|
|
83
|
-
env:
|
|
84
|
-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
85
83
|
run: |
|
|
86
84
|
uv run maturin develop --extras=dev
|
|
87
85
|
- name: Rust format check
|
|
@@ -89,15 +87,10 @@ jobs:
|
|
|
89
87
|
- name: Rust clippy
|
|
90
88
|
env:
|
|
91
89
|
RUSTFLAGS: -D warnings
|
|
92
|
-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
93
90
|
run: cargo clippy --all-targets --all-features
|
|
94
91
|
- name: Run Rust tests
|
|
95
|
-
env:
|
|
96
|
-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
97
92
|
run: cargo test --verbose
|
|
98
93
|
- name: Run Python tests
|
|
99
|
-
env:
|
|
100
|
-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
101
94
|
run: |
|
|
102
95
|
python -c "
|
|
103
96
|
import subprocess, sys
|
|
@@ -106,11 +99,11 @@ jobs:
|
|
|
106
99
|
['uv', 'run', 'pytest', 'tests/', '-v',
|
|
107
100
|
'--cov=logxide', '--cov-report=xml',
|
|
108
101
|
'--timeout=60', '--timeout-method=thread'],
|
|
109
|
-
timeout=
|
|
102
|
+
timeout=600,
|
|
110
103
|
)
|
|
111
104
|
sys.exit(r.returncode)
|
|
112
105
|
except subprocess.TimeoutExpired:
|
|
113
|
-
print('ERROR: pytest timed out after
|
|
106
|
+
print('ERROR: pytest timed out after 600s (likely Rust deadlock)')
|
|
114
107
|
sys.exit(1)
|
|
115
108
|
"
|
|
116
109
|
shell: bash
|
|
@@ -136,7 +129,11 @@ jobs:
|
|
|
136
129
|
- name: Set up Python
|
|
137
130
|
uses: actions/setup-python@v5
|
|
138
131
|
with:
|
|
139
|
-
python-version:
|
|
132
|
+
python-version: |
|
|
133
|
+
3.12
|
|
134
|
+
3.13
|
|
135
|
+
3.14
|
|
136
|
+
3.15
|
|
140
137
|
- name: Set up Rust
|
|
141
138
|
uses: dtolnay/rust-toolchain@stable
|
|
142
139
|
with:
|
|
@@ -146,7 +143,7 @@ jobs:
|
|
|
146
143
|
python -m pip install --upgrade uv
|
|
147
144
|
uv pip install --system maturin
|
|
148
145
|
- name: Build wheels
|
|
149
|
-
run: maturin build --release
|
|
146
|
+
run: maturin build --release --find-interpreter
|
|
150
147
|
- name: Upload wheels
|
|
151
148
|
uses: actions/upload-artifact@v4
|
|
152
149
|
with:
|
|
@@ -22,6 +22,7 @@ jobs:
|
|
|
22
22
|
runs-on: ${{ matrix.platform.runner }}
|
|
23
23
|
strategy:
|
|
24
24
|
matrix:
|
|
25
|
+
python-version: ['3.12', '3.13', '3.14', '3.15']
|
|
25
26
|
platform:
|
|
26
27
|
- runner: ubuntu-22.04
|
|
27
28
|
target: x86_64
|
|
@@ -37,19 +38,15 @@ jobs:
|
|
|
37
38
|
target: ppc64le
|
|
38
39
|
steps:
|
|
39
40
|
- uses: actions/checkout@v4
|
|
40
|
-
- uses: actions/setup-python@v5
|
|
41
|
-
id: setup-python
|
|
42
|
-
with:
|
|
43
|
-
python-version: '3.12'
|
|
44
41
|
- name: Build wheels
|
|
45
42
|
uses: PyO3/maturin-action@v1
|
|
46
43
|
with:
|
|
47
44
|
target: ${{ matrix.platform.target }}
|
|
48
|
-
|
|
45
|
+
# Resolve the interpreter inside the manylinux build environment.
|
|
46
|
+
args: --release --out dist -i python${{ matrix.python-version }}
|
|
49
47
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
50
48
|
manylinux: auto
|
|
51
49
|
env:
|
|
52
|
-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
|
|
53
50
|
# Fix ring crate cross-compilation for ARM targets
|
|
54
51
|
# Must define __ARM_ARCH for assembly compilation
|
|
55
52
|
CFLAGS_aarch64_unknown_linux_gnu: "-march=armv8-a -D__ARM_ARCH=8"
|
|
@@ -57,7 +54,7 @@ jobs:
|
|
|
57
54
|
- name: Upload wheels
|
|
58
55
|
uses: actions/upload-artifact@v4
|
|
59
56
|
with:
|
|
60
|
-
name: wheels-linux-${{ matrix.platform.target }}
|
|
57
|
+
name: wheels-linux-${{ matrix.platform.target }}-py${{ matrix.python-version }}
|
|
61
58
|
path: dist
|
|
62
59
|
|
|
63
60
|
windows:
|
|
@@ -73,7 +70,11 @@ jobs:
|
|
|
73
70
|
- uses: actions/checkout@v4
|
|
74
71
|
- uses: actions/setup-python@v5
|
|
75
72
|
with:
|
|
76
|
-
python-version:
|
|
73
|
+
python-version: |
|
|
74
|
+
3.12
|
|
75
|
+
3.13
|
|
76
|
+
3.14
|
|
77
|
+
3.15
|
|
77
78
|
architecture: ${{ matrix.platform.target }}
|
|
78
79
|
- name: Build wheels
|
|
79
80
|
uses: PyO3/maturin-action@v1
|
|
@@ -81,8 +82,6 @@ jobs:
|
|
|
81
82
|
target: ${{ matrix.platform.target }}
|
|
82
83
|
args: --release --out dist --find-interpreter
|
|
83
84
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
84
|
-
env:
|
|
85
|
-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
|
|
86
85
|
- name: Upload wheels
|
|
87
86
|
uses: actions/upload-artifact@v4
|
|
88
87
|
with:
|
|
@@ -94,23 +93,25 @@ jobs:
|
|
|
94
93
|
strategy:
|
|
95
94
|
matrix:
|
|
96
95
|
platform:
|
|
97
|
-
- runner: macos-
|
|
96
|
+
- runner: macos-latest
|
|
98
97
|
target: x86_64
|
|
99
|
-
- runner: macos-
|
|
98
|
+
- runner: macos-latest
|
|
100
99
|
target: aarch64
|
|
101
100
|
steps:
|
|
102
101
|
- uses: actions/checkout@v4
|
|
103
102
|
- uses: actions/setup-python@v5
|
|
104
103
|
with:
|
|
105
|
-
python-version:
|
|
104
|
+
python-version: |
|
|
105
|
+
3.12
|
|
106
|
+
3.13
|
|
107
|
+
3.14
|
|
108
|
+
3.15
|
|
106
109
|
- name: Build wheels
|
|
107
110
|
uses: PyO3/maturin-action@v1
|
|
108
111
|
with:
|
|
109
112
|
target: ${{ matrix.platform.target }}
|
|
110
113
|
args: --release --out dist --find-interpreter
|
|
111
114
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
112
|
-
env:
|
|
113
|
-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
|
|
114
115
|
- name: Upload wheels
|
|
115
116
|
uses: actions/upload-artifact@v4
|
|
116
117
|
with:
|
|
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.4.0] - 2026-12-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Pure-Rust GIL-free `%`-args formatting fast path (P1-3).** Common positional and mapping `%` specifiers (`%s`, `%d`/`%i`/`%u`, `%x`/`%X`, `%%`, `-`/`0` flags, width padding, and `%(key)s`/`%(key)d`) now format directly into the thread-local formatter buffer in Rust without re-acquiring the Python GIL or allocating intermediate `String`/`PyTuple` objects, falling back to `str.__mod__` for complex specifiers and exact error reporting.
|
|
14
|
+
- **Official Python 3.15 and free-threaded 3.15t support.** Upgraded `pyo3` to `0.30` (`0.30.1`), declared `#[pymodule(gil_used = false)]`, marked `PyLogger` as `#[pyclass(frozen)]` with interior-mutable `&self` on `setLevel` (eliminating `Already borrowed` races under free-threaded CPython 3.15t), added PEP 814 `frozendict` support across `%(key)s` mapping args, `extra`, and `HTTPHandler(global_context=...)`, and enabled Python 3.15 across CI, benchmark, and multi-platform wheel release workflows.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- **Sentry SDK 3.x compatibility (`sentry-sdk >= 3.0.0`).** Replaced removed `sentry_sdk.Hub.current`, `configure_scope()`, and `scope.level` assignments with version-agnostic `is_initialized()` / `get_client()`, `new_scope()`, and `scope.set_level()` calls while retaining 1.x and 2.x support.
|
|
18
|
+
- **Multi-interpreter editable checkout detection (`_check_python_version`).** Check `importlib.machinery.EXTENSION_SUFFIXES` before falling back to filename version inspection so coexisting `.so`/`.pyd`/`.dylib` builds (including `3.15` vs `3.15t`) do not trigger false mismatch exits.
|
|
19
|
+
- **Preserve stdlib `logging` attributes and introspection when shadowing.** `_LoggingModule`
|
|
20
|
+
dynamically delegates unhandled attributes and `__dir__` to the standard library `logging`
|
|
21
|
+
module, ensuring third-party libraries (e.g., `joblib`, `cloudpickle`) importing after
|
|
22
|
+
`logxide` find internal classes and helpers such as `RootLogger`, `PlaceHolder`, and `Manager`.
|
|
23
|
+
Package-level lookups on `logxide` also provide graceful attribute fallback.
|
|
24
|
+
- **`StreamHandler` and `LoggerAdapter` are subscriptable again.** cpython's
|
|
25
|
+
`Lib/logging/__init__.py` gives both classes
|
|
26
|
+
`__class_getitem__ = classmethod(GenericAlias)`; logxide's replacements did
|
|
27
|
+
not, so `logging.LoggerAdapter[...]` raised
|
|
28
|
+
`TypeError: type 'LoggerAdapter' is not subscriptable` once
|
|
29
|
+
`sys.modules["logging"]` had been swapped. websockets >= 17.0 evaluates
|
|
30
|
+
`logging.LoggerAdapter[Any]` at import time (16.0 kept it behind
|
|
31
|
+
`TYPE_CHECKING`), so importing websockets — or anything that imports it,
|
|
32
|
+
such as Sanic — failed outright. `Logger` is left alone: stdlib's `Logger`
|
|
33
|
+
is not subscriptable either.
|
|
34
|
+
|
|
35
|
+
## [0.3.0] - 2026-09-05
|
|
36
|
+
|
|
10
37
|
## [0.2.2] - 2026-07-14
|
|
11
38
|
|
|
12
39
|
### Performance
|
|
@@ -460,7 +487,7 @@ Versus Python stdlib `logging` (subprocess, 100K iter × 3 runs, FileHandler):
|
|
|
460
487
|
|
|
461
488
|
LogXide follows semantic versioning:
|
|
462
489
|
- **Major versions** (x.0.0): Breaking API changes
|
|
463
|
-
- **Minor versions** (0.x.0):
|
|
490
|
+
- **Minor versions before 1.0** (0.x.0): May include breaking API changes; review migration notes before upgrading
|
|
464
491
|
- **Patch versions** (0.0.x): Bug fixes, backward compatible
|
|
465
492
|
|
|
466
493
|
### Support
|
|
@@ -25,13 +25,13 @@ LogXide is a Rust-based Python extension that provides high-performance logging.
|
|
|
25
25
|
- Experience with Rust programming
|
|
26
26
|
- Familiarity with Python and its logging module
|
|
27
27
|
- Understanding of PyO3 for Python-Rust bindings
|
|
28
|
-
-
|
|
28
|
+
- Familiarity with background-worker concurrency (the handlers use `crossbeam-channel` worker threads, not an async runtime)
|
|
29
29
|
|
|
30
30
|
## Development Setup
|
|
31
31
|
|
|
32
32
|
### Prerequisites
|
|
33
33
|
|
|
34
|
-
- Rust 1.
|
|
34
|
+
- Rust via [rustup](https://rustup.rs/): the repo pins channel **1.88.0** in `rust-toolchain.toml` (the chosen build toolchain, not a verified MSRV); rustup installs it automatically
|
|
35
35
|
- Python 3.12 or later
|
|
36
36
|
- Git
|
|
37
37
|
|
|
@@ -52,7 +52,7 @@ LogXide is a Rust-based Python extension that provides high-performance logging.
|
|
|
52
52
|
|
|
53
53
|
4. Install development dependencies:
|
|
54
54
|
```bash
|
|
55
|
-
pip install
|
|
55
|
+
pip install -e '.[dev]' # pytest, pytest-timeout (required by the pytest config), pytest-cov, ruff, pre-commit, maturin
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
5. Install pre-commit hooks:
|
|
@@ -245,7 +245,7 @@ LogXide uses a layered architecture:
|
|
|
245
245
|
|
|
246
246
|
### Performance Considerations
|
|
247
247
|
|
|
248
|
-
- **
|
|
248
|
+
- **Offload blocking I/O**: handlers push work to background worker threads over bounded `crossbeam-channel` queues instead of blocking the caller; account for queue overflow in any new async path
|
|
249
249
|
- **Minimize Allocations**: Avoid unnecessary memory allocations
|
|
250
250
|
- **Efficient String Handling**: Use efficient string operations
|
|
251
251
|
- **Benchmark New Features**: Measure performance impact
|
|
@@ -272,7 +272,7 @@ LogXide uses a layered architecture:
|
|
|
272
272
|
|
|
273
273
|
### Version Numbering
|
|
274
274
|
|
|
275
|
-
LogXide
|
|
275
|
+
LogXide versions as MAJOR.MINOR.PATCH. While the project is 0.x, a **minor** release may include behavior-breaking changes (0.2.0's changed flush semantics and async overflow default shipped in a minor bump; see the CHANGELOG). After 1.0:
|
|
276
276
|
|
|
277
277
|
- **MAJOR**: Breaking changes
|
|
278
278
|
- **MINOR**: New features, backward compatible
|
|
@@ -291,7 +291,7 @@ LogXide follows [Semantic Versioning](https://semver.org/):
|
|
|
291
291
|
- **Documentation**: Check the README and docs
|
|
292
292
|
- **Issues**: Search existing issues
|
|
293
293
|
- **Discussions**: Use GitHub Discussions for questions
|
|
294
|
-
- **Email**: Contact maintainers at
|
|
294
|
+
- **Email**: Contact the maintainers at freedomzero91@gmail.com (the address declared in `pyproject.toml`)
|
|
295
295
|
|
|
296
296
|
## Recognition
|
|
297
297
|
|