xref: /aosp_15_r20/external/gmmlib/Source/GmmLib/Utility/GmmLog/spdlog/tweakme.h (revision 35ffd701415c9e32e53136d61a677a8d0a8fc4a5)
1 //
2 // Copyright(c) 2015 Gabi Melman.
3 // Distributed under the MIT License (http://opensource.org/licenses/MIT)
4 //
5 
6 #pragma once
7 
8 ///////////////////////////////////////////////////////////////////////////////
9 //
10 // Edit this file to squeeze more performance, and to customize supported features
11 //
12 ///////////////////////////////////////////////////////////////////////////////
13 
14 
15 ///////////////////////////////////////////////////////////////////////////////
16 // Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
17 // This clock is less accurate - can be off by dozens of millis - depending on the kernel HZ.
18 // Uncomment to use it instead of the regular clock.
19 //
20 // #define SPDLOG_CLOCK_COARSE
21 ///////////////////////////////////////////////////////////////////////////////
22 
23 
24 ///////////////////////////////////////////////////////////////////////////////
25 // Uncomment if date/time logging is not needed and never appear in the log pattern.
26 // This will prevent spdlog from quering the clock on each log call.
27 //
28 // WARNING: If the log pattern contains any date/time while this flag is on, the result is undefined.
29 //          You must set new pattern(spdlog::set_pattern(..") without any date/time in it
30 //
31 // #define SPDLOG_NO_DATETIME
32 ///////////////////////////////////////////////////////////////////////////////
33 
34 
35 ///////////////////////////////////////////////////////////////////////////////
36 // Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).
37 // This will prevent spdlog from quering the thread id on each log call.
38 //
39 // WARNING: If the log pattern contains thread id (i.e, %t) while this flag is on, the result is undefined.
40 //
41 // #define SPDLOG_NO_THREAD_ID
42 ///////////////////////////////////////////////////////////////////////////////
43 
44 
45 ///////////////////////////////////////////////////////////////////////////////
46 // Uncomment if logger name logging is not needed.
47 // This will prevent spdlog from copying the logger name  on each log call.
48 //
49 #define SPDLOG_NO_NAME
50 ///////////////////////////////////////////////////////////////////////////////
51 
52 ///////////////////////////////////////////////////////////////////////////////
53 // Uncomment to enable the SPDLOG_DEBUG/SPDLOG_TRACE macros.
54 //
55 // #define SPDLOG_DEBUG_ON
56 // #define SPDLOG_TRACE_ON
57 ///////////////////////////////////////////////////////////////////////////////
58 
59 
60 ///////////////////////////////////////////////////////////////////////////////
61 // Uncomment to avoid locking in the registry operations (spdlog::get(), spdlog::drop() spdlog::register()).
62 // Use only if your code never modifes concurrently the registry.
63 // Note that upon creating a logger the registry is modified by spdlog..
64 //
65 // #define SPDLOG_NO_REGISTRY_MUTEX
66 ///////////////////////////////////////////////////////////////////////////////
67 
68 
69 ///////////////////////////////////////////////////////////////////////////////
70 // Uncomment to avoid spdlog's usage of atomic log levels
71 // Use only if your code never modifies a logger's log levels concurrently by different threads.
72 //
73 // #define SPDLOG_NO_ATOMIC_LEVELS
74 ///////////////////////////////////////////////////////////////////////////////
75 
76 ///////////////////////////////////////////////////////////////////////////////
77 // Uncomment to enable usage of wchar_t for file names on Windows.
78 //
79 // #define SPDLOG_WCHAR_FILENAMES
80 ///////////////////////////////////////////////////////////////////////////////
81 
82 ///////////////////////////////////////////////////////////////////////////////
83 // Uncomment to override default eol ("\n" or "\r\n" under Linux/Windows)
84 //
85 // #define SPDLOG_EOL ";-)\n"
86 ///////////////////////////////////////////////////////////////////////////////
87 
88 
89 ///////////////////////////////////////////////////////////////////////////////
90 // Uncomment to use your own copy of the fmt library instead of spdlog's copy.
91 // In this case spdlog will try to include <fmt/format.h> so set your -I flag accordingly.
92 //
93 // #define SPDLOG_FMT_EXTERNAL
94 ///////////////////////////////////////////////////////////////////////////////
95 
96 
97 ///////////////////////////////////////////////////////////////////////////////
98 // Uncomment to enable syslog (disabled by default)
99 //
100 #if __linux__
101 #define SPDLOG_ENABLE_SYSLOG
102 #endif
103 ///////////////////////////////////////////////////////////////////////////////
104 
105 
106