Agora  1.2.0
Agora project
tweakme.h
Go to the documentation of this file.
1 // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
2 // Distributed under the MIT License (http://opensource.org/licenses/MIT)
3 
4 #pragma once
5 
7 //
8 // Edit this file to squeeze more performance, and to customize supported
9 // features
10 //
12 
14 // Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
15 // This clock is less accurate - can be off by dozens of millis - depending on
16 // the kernel HZ.
17 // Uncomment to use it instead of the regular clock.
18 //
19 // #define SPDLOG_CLOCK_COARSE
21 
23 // Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).
24 // This will prevent spdlog from querying the thread id on each log call.
25 //
26 // WARNING: If the log pattern contains thread id (i.e, %t) while this flag is
27 // on, zero will be logged as thread id.
28 //
29 // #define SPDLOG_NO_THREAD_ID
31 
33 // Uncomment to prevent spdlog from using thread local storage.
34 //
35 // WARNING: if your program forks, UNCOMMENT this flag to prevent undefined
36 // thread ids in the children logs.
37 //
38 // #define SPDLOG_NO_TLS
40 
42 // Uncomment to avoid spdlog's usage of atomic log levels
43 // Use only if your code never modifies a logger's log levels concurrently by
44 // different threads.
45 //
46 // #define SPDLOG_NO_ATOMIC_LEVELS
48 
50 // Uncomment to enable usage of wchar_t for file names on Windows.
51 //
52 // #define SPDLOG_WCHAR_FILENAMES
54 
56 // Uncomment to override default eol ("\n" or "\r\n" under Linux/Windows)
57 //
58 // #define SPDLOG_EOL ";-)\n"
60 
62 // Uncomment to override default folder separators ("/" or "\\/" under
63 // Linux/Windows). Each character in the string is treated as a different
64 // separator.
65 //
66 // #define SPDLOG_FOLDER_SEPS "\\"
68 
70 // Uncomment to use your own copy of the fmt library instead of spdlog's copy.
71 // In this case spdlog will try to include <fmt/format.h> so set your -I flag
72 // accordingly.
73 //
74 // #define SPDLOG_FMT_EXTERNAL
76 
78 // Uncomment to use C++20 std::format instead of fmt. This removes compile
79 // time checking of format strings, but doesn't depend on the fmt library.
80 //
81 // #define SPDLOG_USE_STD_FORMAT
83 
85 // Uncomment to enable wchar_t support (convert to utf8)
86 //
87 // #define SPDLOG_WCHAR_TO_UTF8_SUPPORT
89 
91 // Uncomment to prevent child processes from inheriting log file descriptors
92 //
93 // #define SPDLOG_PREVENT_CHILD_FD
95 
97 // Uncomment to customize level names (e.g. "MY TRACE")
98 //
99 // #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING", "MY ERROR", "MY CRITICAL", "OFF" }
101 
103 // Uncomment to customize short level names (e.g. "MT")
104 // These can be longer than one character.
105 //
106 // #define SPDLOG_SHORT_LEVEL_NAMES { "T", "D", "I", "W", "E", "C", "O" }
108 
110 // Uncomment to disable default logger creation.
111 // This might save some (very) small initialization time if no default logger is needed.
112 //
113 // #define SPDLOG_DISABLE_DEFAULT_LOGGER
115 
117 // Uncomment and set to compile time level with zero cost (default is INFO).
118 // Macros like SPDLOG_DEBUG(..), SPDLOG_INFO(..) will expand to empty statements if not enabled
119 //
120 // #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
122 
124 // Uncomment (and change if desired) macro to use for function names.
125 // This is compiler dependent.
126 // __PRETTY_FUNCTION__ might be nicer in clang/gcc, and __FUNCTION__ in msvc.
127 // Defaults to __FUNCTION__ (should work on all compilers) if not defined.
128 //
129 // #ifdef __PRETTY_FUNCTION__
130 // # define SPDLOG_FUNCTION __PRETTY_FUNCTION__
131 // #else
132 // # define SPDLOG_FUNCTION __FUNCTION__
133 // #endif