dagstack-logger
Python binding for dagstack/logger-spec — OTel-compatible structured logging with a named-logger hierarchy, W3C trace context propagation, pluggable sinks, and scoped overrides.
Typically configured from a dagstack-config logging: section, but dagstack-config is not a runtime dependency — see Dependencies below.
Status: Phase 1 MVP. Console / File / In-memory sinks ship; OTLP, redaction processor chain, and the AI-agent extension pack land in Phase 2+.
Roadmap
- Phase 1 release (
0.xseries) — current.LogRecord/Severity/ W3C hex encoding / dagstack JSON-lines wire format;ConsoleSink(JSON/pretty TTY-aware),FileSink(rotation),InMemorySink(ring buffer);Loggerhierarchy with context propagation, suffix-based redaction (RedactionConfig), and scoped overrides. The module-levelconfigure(...)accepts a section dumped fromdagstack-config; no hard runtime dependency on the config binding. No OTLP sink, no LogProcessor chain, no AI-agent extension pack (§5.5 of logger-spec) yet. - Phase 2+ —
OTLPSink,LokiSink,SentrySink, the LogProcessor chain (redaction / sampling), AI-agent conventions.
Spec
The spec lives as a submodule in spec/ → dagstack/logger-spec. The core decisions are in spec/adr/0001-logger-contract.md.
Local development
git clone --recurse-submodules https://github.com/dagstack/logger-python.git
cd logger-python
uv sync --group dev
make test # pytest
make lint # ruff check + format --check
make typecheck # mypy --strict
Dependencies
opentelemetry-api>=1.20,<2.0— for trace / span / baggage context propagation (mandatory per spec §3.4).opentelemetry-sdk+ exporter (optional via[otlp]extras) — forOTLPSinkin Phase 2+.
dagstack-logger does not declare a runtime dependency on dagstack-config: the application loads its config via the config binding and passes the resolved logging: section to configure(**section) (see dagstack/config-python).
Licensing
Apache-2.0.
Related
dagstack/logger-spec— language-agnostic spec.dagstack/config-python— config binding; the logger reads itslogging:section through this binding.dagstack/plugin-system-python— plugin system; the logger'sinstrumentation_scopecan be derived from a plugin manifest.
Metadata
Release files for dagstack-logger 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dagstack_logger-0.2.0.tar.gz | 147.3 kB | Without provenance | Details for dagstack_logger-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dagstack_logger-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for dagstack_logger-0.2.0-py3-none-any.whl |
Total release size: 182.8 kB
Release files / dagstack_logger-0.2.0.tar.gz
| Download URL | dagstack_logger-0.2.0.tar.gz |
|---|---|
| Size | 147.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d45e486f2461c213bfdbd0041ad4b0d1b2d43d424ad3b3e638b1acca8892a728
|
|
BLAKE2b-256 checksum How to use checksums |
4050cab7b583915119a538e3d54cb493c214b046f27b7c3e4f62a60445d07d49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / dagstack_logger-0.2.0-py3-none-any.whl
| Download URL | dagstack_logger-0.2.0-py3-none-any.whl |
|---|---|
| Size | 35.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58ef543eeae55cfc410cedf5db3c1a5968fd316820a5e91be0ec380fbec3a5a3
|
|
BLAKE2b-256 checksum How to use checksums |
09901ebd54494ebbaff4523008249f3826a39eaf95b8f5f5ed251ca78ed3f6c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for dagstack-logger 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.