LogIt++
|
Configuration macros for the LogIt logging system. More...
Go to the source code of this file.
Macros | |
#define | _LOGIT_CONFIG_HPP_INCLUDED |
#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. | |
#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 . | |
#define | LOGIT_CURRENT_TIMESTAMP_MS() |
Macro to get the current timestamp in milliseconds. If LOGIT_CURRENT_TIMESTAMP_MS is not defined, it uses std::chrono to return the current time in milliseconds. | |
Log Level Colors | |
Default colors for each log level. | |
#define | LOGIT_COLOR_TRACE logit::TextColor::DarkGray |
#define | LOGIT_COLOR_DEBUG logit::TextColor::Blue |
#define | LOGIT_COLOR_INFO logit::TextColor::Green |
#define | LOGIT_COLOR_WARN logit::TextColor::Yellow |
#define | LOGIT_COLOR_ERROR logit::TextColor::Red |
#define | LOGIT_COLOR_FATAL logit::TextColor::Magenta |
#define | LOGIT_COLOR_DEFAULT logit::TextColor::White |
File Logger Settings | |
Configuration macros for file-based loggers. | |
#define | LOGIT_CONSOLE_PATTERN "%H:%M:%S.%e | %^%N([%50!g:%#])%v%$" |
Defines the default log pattern for the console logger. If LOGIT_CONSOLE_PATTERN is not defined, it defaults to "%H:%M:%S.%e | %^%N([%50!g:%#])%v%$". | |
#define | LOGIT_FILE_LOGGER_PATH "data/logs" |
Defines the default directory path for log files. If LOGIT_FILE_LOGGER_PATH is not defined, it defaults to "data/logs". | |
#define | LOGIT_UNIQUE_FILE_LOGGER_PATH "data/logs/unique_logs" |
Defines the default directory path for unique log files. If LOGIT_UNIQUE_FILE_LOGGER_PATH is not defined, it defaults to "data/logs/unique_logs". | |
#define | LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS 30 |
Defines the number of days after which old log files are deleted. If LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS is not defined, it defaults to 30 days. | |
#define | LOGIT_FILE_LOGGER_PATTERN "[%Y-%m-%d %H:%M:%S.%e] [%g:%#] [%!] [thread:%t] [%l] %SC%v" |
Defines the default log pattern for file-based loggers. If LOGIT_FILE_LOGGER_PATTERN is not defined, it defaults to "[%Y-%m-%d %H:%M:%S.%e] [%g:%#] [%!] [thread:%t] [%l] %SC%v". | |
#define | LOGIT_UNIQUE_FILE_LOGGER_PATTERN "%v" |
Defines the default log pattern for unique file-based loggers. If LOGIT_UNIQUE_FILE_LOGGER_PATTERN is not defined, it defaults to "%v". | |
#define | LOGIT_UNIQUE_FILE_LOGGER_HASH_LENGTH 8 |
Defines the default hash length for unique file names. If LOGIT_UNIQUE_FILE_LOGGER_HASH_LENGTH is not defined, it defaults to 8. | |
Configuration macros for the LogIt logging system.
Definition in file LogItConfig.hpp.
#define _LOGIT_CONFIG_HPP_INCLUDED |
Definition at line 3 of file LogItConfig.hpp.