|
LogIt++
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
2#ifndef _LOGIT_CONFIG_HPP_INCLUDED
3#define _LOGIT_CONFIG_HPP_INCLUDED
10 #define LOGIT_BASE_PATH {}
17#ifndef LOGIT_DEFAULT_COLOR
18 #define LOGIT_DEFAULT_COLOR TextColor::LightGray
21#ifndef LOGIT_COLOR_TRACE
22 #define LOGIT_COLOR_TRACE TextColor::DarkGray
25#ifndef LOGIT_COLOR_DEBUG
26 #define LOGIT_COLOR_DEBUG TextColor::Blue
29#ifndef LOGIT_COLOR_INFO
30 #define LOGIT_COLOR_INFO TextColor::Green
33#ifndef LOGIT_COLOR_WARN
34 #define LOGIT_COLOR_WARN TextColor::Yellow
37#ifndef LOGIT_COLOR_ERROR
38 #define LOGIT_COLOR_ERROR TextColor::Red
41#ifndef LOGIT_COLOR_FATAL
42 #define LOGIT_COLOR_FATAL TextColor::Magenta
45#ifndef LOGIT_COLOR_DEFAULT
46 #define LOGIT_COLOR_DEFAULT TextColor::White
53#ifndef LOGIT_CURRENT_TIMESTAMP_MS
54 #define LOGIT_CURRENT_TIMESTAMP_MS() \
55 (std::chrono::duration_cast<std::chrono::milliseconds>( \
56 std::chrono::system_clock::now().time_since_epoch()).count())
63#ifndef LOGIT_CONSOLE_PATTERN
64 #define LOGIT_CONSOLE_PATTERN "%H:%M:%S.%e | %^%v%$"
72#ifndef LOGIT_FILE_LOGGER_PATH
73 #define LOGIT_FILE_LOGGER_PATH "data/logs"
81#ifndef LOGIT_UNIQUE_FILE_LOGGER_PATH
82 #define LOGIT_UNIQUE_FILE_LOGGER_PATH "data/logs/unique_logs"
89#ifndef LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS
90 #define LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS 30
98#ifndef LOGIT_FILE_LOGGER_PATTERN
99 #define LOGIT_FILE_LOGGER_PATTERN "[%Y-%m-%d %H:%M:%S.%e] [%ffn:%#] [%!] [thread:%t] [%l] %SC%v"
104#ifndef LOGIT_UNIQUE_FILE_LOGGER_PATTERN
105 #define LOGIT_UNIQUE_FILE_LOGGER_PATTERN "%v"
110#ifndef LOGIT_UNIQUE_FILE_LOGGER_HASH_LENGTH
111 #define LOGIT_UNIQUE_FILE_LOGGER_HASH_LENGTH 8