LogIt++
Loading...
Searching...
No Matches
LogItConfig.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef _LOGIT_CONFIG_HPP_INCLUDED
3#define _LOGIT_CONFIG_HPP_INCLUDED
6
9#ifndef LOGIT_BASE_PATH
10 #define LOGIT_BASE_PATH {}
11#endif
12
17#ifndef LOGIT_DEFAULT_COLOR
18 #define LOGIT_DEFAULT_COLOR TextColor::LightGray
19#endif
20
21#ifndef LOGIT_COLOR_TRACE
22 #define LOGIT_COLOR_TRACE TextColor::DarkGray
23#endif
24
25#ifndef LOGIT_COLOR_DEBUG
26 #define LOGIT_COLOR_DEBUG TextColor::Blue
27#endif
28
29#ifndef LOGIT_COLOR_INFO
30 #define LOGIT_COLOR_INFO TextColor::Green
31#endif
32
33#ifndef LOGIT_COLOR_WARN
34 #define LOGIT_COLOR_WARN TextColor::Yellow
35#endif
36
37#ifndef LOGIT_COLOR_ERROR
38 #define LOGIT_COLOR_ERROR TextColor::Red
39#endif
40
41#ifndef LOGIT_COLOR_FATAL
42 #define LOGIT_COLOR_FATAL TextColor::Magenta
43#endif
44
45#ifndef LOGIT_COLOR_DEFAULT
46 #define LOGIT_COLOR_DEFAULT TextColor::White
47#endif
48
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())
57#endif
58
63#ifndef LOGIT_CONSOLE_PATTERN
64 #define LOGIT_CONSOLE_PATTERN "%H:%M:%S.%e | %^%v%$"
65#endif
66
72#ifndef LOGIT_FILE_LOGGER_PATH
73 #define LOGIT_FILE_LOGGER_PATH "data/logs"
74#endif
75
81#ifndef LOGIT_UNIQUE_FILE_LOGGER_PATH
82 #define LOGIT_UNIQUE_FILE_LOGGER_PATH "data/logs/unique_logs"
83#endif
84
89#ifndef LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS
90 #define LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS 30
91#endif
92
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"
100#endif
101
104#ifndef LOGIT_UNIQUE_FILE_LOGGER_PATTERN
105 #define LOGIT_UNIQUE_FILE_LOGGER_PATTERN "%v"
106#endif
107
110#ifndef LOGIT_UNIQUE_FILE_LOGGER_HASH_LENGTH
111 #define LOGIT_UNIQUE_FILE_LOGGER_HASH_LENGTH 8
112#endif
113
114#endif // _LOGIT_CONFIG_HPP_INCLUDED