|
LogIt++
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
2#ifndef _LOGIT_CONFIG_HPP_INCLUDED
3#define _LOGIT_CONFIG_HPP_INCLUDED
29#ifndef LOGIT_BASE_PATH
30 #define LOGIT_BASE_PATH {}
37#ifndef LOGIT_DEFAULT_COLOR
38 #define LOGIT_DEFAULT_COLOR logit::TextColor::LightGray
44#ifndef LOGIT_COLOR_TRACE
45 #define LOGIT_COLOR_TRACE logit::TextColor::DarkGray
48#ifndef LOGIT_COLOR_DEBUG
49 #define LOGIT_COLOR_DEBUG logit::TextColor::Blue
52#ifndef LOGIT_COLOR_INFO
53 #define LOGIT_COLOR_INFO logit::TextColor::Green
56#ifndef LOGIT_COLOR_WARN
57 #define LOGIT_COLOR_WARN logit::TextColor::Yellow
60#ifndef LOGIT_COLOR_ERROR
61 #define LOGIT_COLOR_ERROR logit::TextColor::Red
64#ifndef LOGIT_COLOR_FATAL
65 #define LOGIT_COLOR_FATAL logit::TextColor::Magenta
68#ifndef LOGIT_COLOR_DEFAULT
69 #define LOGIT_COLOR_DEFAULT logit::TextColor::White
77#ifndef LOGIT_CURRENT_TIMESTAMP_MS
78 #define LOGIT_CURRENT_TIMESTAMP_MS() \
79 (std::chrono::duration_cast<std::chrono::milliseconds>( \
80 std::chrono::system_clock::now().time_since_epoch()).count())
91#ifndef LOGIT_CONSOLE_PATTERN
92 #define LOGIT_CONSOLE_PATTERN "%H:%M:%S.%e | %^%N([%50!g:%#])%v%$"
100#ifndef LOGIT_FILE_LOGGER_PATH
101 #define LOGIT_FILE_LOGGER_PATH "data/logs"
109#ifndef LOGIT_UNIQUE_FILE_LOGGER_PATH
110 #define LOGIT_UNIQUE_FILE_LOGGER_PATH "data/logs/unique_logs"
117#ifndef LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS
118 #define LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS 30
126#ifndef LOGIT_FILE_LOGGER_PATTERN
127 #define LOGIT_FILE_LOGGER_PATTERN "[%Y-%m-%d %H:%M:%S.%e] [%g:%#] [%!] [thread:%t] [%l] %SC%v"
132#ifndef LOGIT_UNIQUE_FILE_LOGGER_PATTERN
133 #define LOGIT_UNIQUE_FILE_LOGGER_PATTERN "%v"
138#ifndef LOGIT_UNIQUE_FILE_LOGGER_HASH_LENGTH
139 #define LOGIT_UNIQUE_FILE_LOGGER_HASH_LENGTH 8