A bridge to integrate Loguru logging with Dagster context.log.
Project description
loguru-dagster
loguru-dagster is a lightweight utility package that bridges Loguru with Dagster.
It enables colorized, contextual logging inside Dagster pipelines with a single decorator.
🚀 Installation
pip install loguru-dagster
This will automatically install the required loguru and dagster dependencies.
📦 Import Path
from loguru_dagster import dagster_context_sink, with_loguru_logger
🧪 Usage Example
from loguru import logger
from loguru_dagster import dagster_context_sink, with_loguru_logger
@dg.asset
@with_loguru_logger
def my_asset(context: dg.AssetExecutionContext):
logger.info("Hello loguru-dagster!")
defs = dg.Definitions(
assets=[my_asset]
)
🔗 Repository
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loguru_dagster-0.1.2.tar.gz.
File metadata
- Download URL: loguru_dagster-0.1.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
030c82c34c051e1d5e585194b8f4d7d7a1e91a4cc3192636496c0d8a3edc5ea0
|
|
| MD5 |
eaf40f27b56f09fc3698a9009c265263
|
|
| BLAKE2b-256 |
f524f53b895a3d19b73f245d486d4154017b9a301a654f5a691327927fe4877a
|
File details
Details for the file loguru_dagster-0.1.2-py3-none-any.whl.
File metadata
- Download URL: loguru_dagster-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c17f0e020e6c4e422cd15b18d45e97243c090bedf447f202f944fc5bb8bbda4
|
|
| MD5 |
0611e3632f5ac62dea524343c13e2703
|
|
| BLAKE2b-256 |
ce33d0881abc0b73c2564ae84339ba2f603f38378a3401c0ca16f3aedfa03c21
|