Crate lumelog

Source
Expand description

§Logging Configuration Module

This module provides a configurable logging system with support for different log levels, time-stamping logs, and file logging in multiple formats.

§Features

  • Adjustable log levels (ERROR, WARN, INFO, DEBUG, TRACE).
  • Optional time-stamping for log output.
  • Configurable file-based logging with support for JSON and text formats.
  • Centralized configuration using a static instance (OnceCell).

§Usage

  1. Build a configuration using ConfigBuilder.
  2. Use macros for logging (info!, debug!, etc.).

Macros§

  • Logs a debug message (DEBUG level).
  • Logs an error message (ERROR level).
  • Logs an informational message (INFO level).
  • Logs a trace message (TRACE level).
  • Logs a warning message (WARN level).

Structs§

Enums§