bitz-server  2.0.3
tweakme.h
1 //
2 // Copyright(c) 2015 Gabi Melman.
3 // Distributed under the MIT License (http://opensource.org/licenses/MIT)
4 //
5 
6 #pragma once
7 
9 //
10 // Edit this file to squeeze more performance, and to customize supported features
11 //
13 
15 // Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
16 // This clock is less accurate - can be off by dozens of millis - depending on the kernel HZ.
17 // Uncomment to use it instead of the regular clock.
18 //
19 // #define SPDLOG_CLOCK_COARSE
21 
23 // Uncomment if date/time logging is not needed and never appear in the log pattern.
24 // This will prevent spdlog from querying the clock on each log call.
25 //
26 // WARNING: If the log pattern contains any date/time while this flag is on, the result is undefined.
27 // You must set new pattern(spdlog::set_pattern(..") without any date/time in it
28 //
29 // #define SPDLOG_NO_DATETIME
31 
33 // Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).
34 // This will prevent spdlog from querying the thread id on each log call.
35 //
36 // WARNING: If the log pattern contains thread id (i.e, %t) while this flag is on, the result is undefined.
37 //
38 #define SPDLOG_NO_THREAD_ID
39 
42 // Uncomment to prevent spdlog from caching thread ids in thread local storage.
43 // By default spdlog saves thread ids in tls to gain a few micros for each call.
44 //
45 // WARNING: if your program forks, UNCOMMENT this flag to prevent undefined thread ids in the children logs.
46 //
47 #define SPDLOG_DISABLE_TID_CACHING
48 
51 // Uncomment if logger name logging is not needed.
52 // This will prevent spdlog from copying the logger name on each log call.
53 //
54 #define SPDLOG_NO_NAME
55 
58 // Uncomment to enable the SPDLOG_DEBUG/SPDLOG_TRACE macros.
59 //
60 // #define SPDLOG_DEBUG_ON
61 // #define SPDLOG_TRACE_ON
63 
65 // Uncomment to avoid locking in the registry operations (spdlog::get(), spdlog::drop() spdlog::register()).
66 // Use only if your code never modifies concurrently the registry.
67 // Note that upon creating a logger the registry is modified by spdlog..
68 //
69 // #define SPDLOG_NO_REGISTRY_MUTEX
71 
73 // Uncomment to avoid spdlog's usage of atomic log levels
74 // Use only if your code never modifies a logger's log levels concurrently by different threads.
75 //
76 #define SPDLOG_NO_ATOMIC_LEVELS
77 
80 // Uncomment to enable usage of wchar_t for file names on Windows.
81 //
82 // #define SPDLOG_WCHAR_FILENAMES
84 
86 // Uncomment to override default eol ("\n" or "\r\n" under Linux/Windows)
87 //
88 // #define SPDLOG_EOL ";-)\n"
90 
92 // Uncomment to use your own copy of the fmt library instead of spdlog's copy.
93 // In this case spdlog will try to include <fmt/format.h> so set your -I flag accordingly.
94 //
95 // #define SPDLOG_FMT_EXTERNAL
97 
99 // Uncomment to use printf-style messages in your logs instead of the usual
100 // format-style used by default.
101 //
102 // #define SPDLOG_FMT_PRINTF
104 
106 // Uncomment to enable syslog (disabled by default)
107 //
108 // #define SPDLOG_ENABLE_SYSLOG
110 
112 // Uncomment to enable wchar_t support (convert to utf8)
113 //
114 // #define SPDLOG_WCHAR_TO_UTF8_SUPPORT
116 
118 // Uncomment to prevent child processes from inheriting log file descriptors
119 //
120 // #define SPDLOG_PREVENT_CHILD_FD
122 
124 // Uncomment if your compiler doesn't support the "final" keyword.
125 // The final keyword allows more optimizations in release
126 // mode with recent compilers. See GCC's documentation for -Wsuggest-final-types
127 // for instance.
128 //
129 // #define SPDLOG_NO_FINAL
131 
133 // Uncomment to enable message counting feature.
134 // Use the %i in the logger pattern to display log message sequence id.
135 //
136 // #define SPDLOG_ENABLE_MESSAGE_COUNTER
138 
140 // Uncomment to customize level names (e.g. "MT TRACE")
141 //
142 // #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING", "MY ERROR", "MY CRITICAL", "OFF" }