Skip to content

Advanced Features

Eduard Mishkurov edited this page May 3, 2026 · 7 revisions

Advanced Features

logme includes a set of features designed for real-world production usage.


Message frequency control

logme allows limiting how often messages appear.

Examples:

  • log once
  • log every N times

This is useful in hot paths to reduce log noise.


Boot / early logging

log messages can be captured before full configuration is loaded.

This helps diagnose startup issues that would otherwise be lost.


Precheck mechanism

Before formatting and argument evaluation, logme performs a lightweight check.

If logging is disabled:

  • formatting is skipped
  • arguments are not evaluated

This minimizes overhead in performance-critical code.


Runtime control

Logging behavior can be changed without restarting the application.

This includes:

  • enabling/disabling channels
  • changing levels
  • adding backends

Obfuscation support

logme supports obfuscation of sensitive data in logs.

This allows using logs in environments where security matters.


Summary

These features are designed to make logging usable in production systems, not just during development.

Clone this wiki locally