Workflows

This guide maps the LitLogger feature set to concrete workflows so users can quickly choose the right API surface.

Experiment API

Recommended for new code.

  • Initialize with litlogger.init.init
  • Work with the returned Experiment
  • Log metadata with experiment["key"] = "value"
  • Log metrics with append and extend on experiment["key"]
  • Log files, media, and models with the file-like wrappers

Legacy Module-Level API

Supported for existing standalone scripts, but the Experiment API is the main user-facing API going forward.

PyTorch Lightning and Lightning Fabric

Use lightning:lightning.pytorch.loggers.LitLogger with a Trainer or Fabric loop. The local LightningLogger alias is deprecated.

Files, Media, and Models

Use the dedicated wrappers when you want data attached to a run:

Resume and Retrieval

Re-initialize with the same experiment name to continue logging or inspect existing metadata, metrics, artifacts, and media.

End-to-End Log and Fetch

See Complete Workflow for the full train-and-fetch flow.

Inference Logging

Use LitLogger inside a LitServe endpoint to track inference metrics and request-level telemetry.

Was this page helpful?

What went wrong?

↑↓ Navigate↵ Open⌘↵ New tabesc Close