Skip to content

Repository files navigation

Structured ML Logging

Structured (JSON) logging for ML experiments with schema validation and pluggable sinks.

Installation (dev)

pip install -e ".[dev]"

Quickstart

from mlog import get_logger, run_context

log = get_logger(project="demo", experiment="baseline", sink="stdout", validation="strict")

with run_context(run_id="run_001", tags={"team": "ml"}):
    log.param("lr", 0.01)
    log.metric("train.loss", 0.123, step=1)
    log.event("done")

About

Structured JSON logging for ML experiments: schema-validated events, run context, pluggable sinks (stdout/file/Logstash, optional GCP), redaction, buffering, and summary emission.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages