Skip to main content

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

https://github.com/albertfast/loguru-dagster

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

loguru_dagster-0.1.4.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loguru_dagster-0.1.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file loguru_dagster-0.1.4.tar.gz.

File metadata

  • Download URL: loguru_dagster-0.1.4.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for loguru_dagster-0.1.4.tar.gz
Algorithm Hash digest
SHA256 22fee1e5c9478dc06ddd4cf6da85f7069d8ecce213e399d74c095c05b8ac1d1a
MD5 0832cd1955739f42a80eb98f14309d41
BLAKE2b-256 f27eb58d86e758b34dcb8e301c7a8fd10753d5a23fbc40a7246584eb57bd221c

See more details on using hashes here.

File details

Details for the file loguru_dagster-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: loguru_dagster-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for loguru_dagster-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bfbb6e43926daac5126d4f27c984e779006d0c59250655cf8ce7deaae7845e77
MD5 d1e589d268733976c60a807f48f3e8e9
BLAKE2b-256 8eb66afb1fac7f5ea9184c979e7427410446a370084b2184b9a5021fead511f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page