LogIt++
Loading...
Searching...
No Matches
Configuration Macros

A set of macros used to configure the LogIt logging system. More...

#define LOGIT_BASE_PATH   {}
 Defines the base path used for log file paths.
 
#define LOGIT_DEFAULT_COLOR   logit::TextColor::LightGray
 Defines the default color for console output.
 

Detailed Description

A set of macros used to configure the LogIt logging system.

These macros control various aspects of the logging behavior, including paths, patterns, colors, timestamps, and retention policies.

Examples
Customizing Log File Paths
#define LOGIT_FILE_LOGGER_PATH "custom/log/directory"
Customizing Console Output Colors
#define LOGIT_COLOR_WARN logit::TextColor::Yellow

Macro Definition Documentation

◆ LOGIT_BASE_PATH

#define LOGIT_BASE_PATH   {}

Defines the base path used for log file paths.

If LOGIT_BASE_PATH is not defined or is empty ({}), the full path from __FILE__ will be used for log file paths.

Definition at line 14 of file LogItConfig.hpp.

◆ LOGIT_DEFAULT_COLOR

#define LOGIT_DEFAULT_COLOR   logit::TextColor::LightGray

Defines the default color for console output.

If LOGIT_DEFAULT_COLOR is not defined, defaults to logit::TextColor::LightGray.

This macro allows setting a default console text color for log messages.

Definition at line 22 of file LogItConfig.hpp.