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 in Dagster pipelines with just a decorator.

Installation

pip install loguru-dagster

Usage

from loguru import logger
from loguru_dagster import with_loguru_logger

@asset
@with_loguru_logger
def greet(context):
    logger.info("Hello from Loguru!")

All logs will show up in Dagster UI with proper formatting and level awareness.

Configuration

Customize logging behavior using environment variables:

  • DAGSTER_LOGURU_ENABLED (true|false)
  • DAGSTER_LOGURU_LOG_LEVEL (DEBUG, INFO, ...)
  • DAGSTER_LOGURU_FORMAT
  • DAGSTER_LOGURU_FILE_PATH

License

MIT

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.0.tar.gz (3.7 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.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for loguru_dagster-0.1.0.tar.gz
Algorithm Hash digest
SHA256 87466332343eeaf44be9fcdc9ae9eeeaf446cf2657e7278c1bd5d24f6f178f7e
MD5 99b810779d8c2d705814215ac61e444b
BLAKE2b-256 3e9734cc7eaca7121937fbb594dc7b3431ee4905584cb6b8ff3e2b506c05b361

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for loguru_dagster-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdabc8c8f8f46e09d98c57b9a6ea2049a13c1ba58b002405e04f2a1c9b965557
MD5 c9561b7874ab60ab6fdfa6cbc9fa033f
BLAKE2b-256 40adcd39400f65551bc7e4b74eed1d2b772a52f1dbaa49e4cfdbd534a45fa906

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