Skip to content

Upgrading loguru 0.2 to 0.3

Breaking0.2.5 → 0.3.2Breaking4New5Changed3Fixed13Other1

BreakingUpgrade verdict

4 breaking changes.

  • The backtrace option no longer shows variable values; a new diagnose option controls that instead.
  • Log rotation timing now counts from when the file was created instead of the current time, and support may vary by platform.
  • A mistyped color tag now causes an error rather than being quietly ignored.
  • Combining several colors in one tag is no longer supported.
Top 3 of 4 that need code or config changes

Drops ansimarkup, better-exceptions-fork, colorama.

Installs 0 packages in all (was 3).

Breaking4
Changes the sink backtrace option to only extend the stacktrace upward; variable display is now controlled by the new diagnose argument.
backtracediagnose
Changes file sink rotation to be based on file creation time rather than current time, with platform-dependent support.
rotation
Raises errors on unknown color tags instead of silently ignoring them.
Removes color tag mixing directives such as <red,blue> for simplification.
<red,blue>