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
- Build a configuration using
ConfigBuilder. - Use macros for logging (
info!,debug!, etc.).
Macros§
- Logs a debug message (
DEBUGlevel). - Logs an error message (
ERRORlevel). - Logs an informational message (
INFOlevel). - Logs a trace message (
TRACElevel). - Logs a warning message (
WARNlevel).
Structs§
- Represents the full logging configuration.
- Builder for configuring the logging system.
- Represents a file logger configuration.
- Builder for configuring a file logger.
Enums§
- Represents the file log format.
- Represents the severity level of logs.