Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/spdlog/tweakme.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
0002 // Distributed under the MIT License (http://opensource.org/licenses/MIT)
0003 
0004 #pragma once
0005 
0006 ///////////////////////////////////////////////////////////////////////////////
0007 //
0008 // Edit this file to squeeze more performance, and to customize supported
0009 // features
0010 //
0011 ///////////////////////////////////////////////////////////////////////////////
0012 
0013 ///////////////////////////////////////////////////////////////////////////////
0014 // Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
0015 // This clock is less accurate - can be off by dozens of millis - depending on
0016 // the kernel HZ.
0017 // Uncomment to use it instead of the regular clock.
0018 //
0019 // #define SPDLOG_CLOCK_COARSE
0020 ///////////////////////////////////////////////////////////////////////////////
0021 
0022 ///////////////////////////////////////////////////////////////////////////////
0023 // Uncomment if source location logging is not needed.
0024 // This will prevent spdlog from using __FILE__, __LINE__ and SPDLOG_FUNCTION
0025 //
0026 // #define SPDLOG_NO_SOURCE_LOC
0027 ///////////////////////////////////////////////////////////////////////////////
0028 
0029 ///////////////////////////////////////////////////////////////////////////////
0030 // Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).
0031 // This will prevent spdlog from querying the thread id on each log call.
0032 //
0033 // WARNING: If the log pattern contains thread id (i.e, %t) while this flag is
0034 // on, zero will be logged as thread id.
0035 //
0036 // #define SPDLOG_NO_THREAD_ID
0037 ///////////////////////////////////////////////////////////////////////////////
0038 
0039 ///////////////////////////////////////////////////////////////////////////////
0040 // Uncomment to prevent spdlog from using thread local storage.
0041 //
0042 // WARNING: if your program forks, UNCOMMENT this flag to prevent undefined
0043 // thread ids in the children logs.
0044 //
0045 // #define SPDLOG_NO_TLS
0046 ///////////////////////////////////////////////////////////////////////////////
0047 
0048 ///////////////////////////////////////////////////////////////////////////////
0049 // Uncomment to avoid spdlog's usage of atomic log levels
0050 // Use only if your code never modifies a logger's log levels concurrently by
0051 // different threads.
0052 //
0053 // #define SPDLOG_NO_ATOMIC_LEVELS
0054 ///////////////////////////////////////////////////////////////////////////////
0055 
0056 ///////////////////////////////////////////////////////////////////////////////
0057 // Uncomment to enable usage of wchar_t for file names on Windows.
0058 //
0059 // #define SPDLOG_WCHAR_FILENAMES
0060 ///////////////////////////////////////////////////////////////////////////////
0061 
0062 ///////////////////////////////////////////////////////////////////////////////
0063 // Uncomment to override default eol ("\n" or "\r\n" under Linux/Windows)
0064 //
0065 // #define SPDLOG_EOL ";-)\n"
0066 ///////////////////////////////////////////////////////////////////////////////
0067 
0068 ///////////////////////////////////////////////////////////////////////////////
0069 // Uncomment to override default folder separators ("/" or "\\/" under
0070 // Linux/Windows). Each character in the string is treated as a different
0071 // separator.
0072 //
0073 // #define SPDLOG_FOLDER_SEPS "\\"
0074 ///////////////////////////////////////////////////////////////////////////////
0075 
0076 ///////////////////////////////////////////////////////////////////////////////
0077 // Uncomment to use your own copy of the fmt library instead of spdlog's copy.
0078 // In this case spdlog will try to include <fmt/format.h> so set your -I flag
0079 // accordingly.
0080 //
0081 #ifndef SPDLOG_FMT_EXTERNAL
0082 #define SPDLOG_FMT_EXTERNAL
0083 #endif
0084 ///////////////////////////////////////////////////////////////////////////////
0085 
0086 ///////////////////////////////////////////////////////////////////////////////
0087 // Uncomment to use C++20 std::format instead of fmt.
0088 //
0089 // #define SPDLOG_USE_STD_FORMAT
0090 ///////////////////////////////////////////////////////////////////////////////
0091 
0092 ///////////////////////////////////////////////////////////////////////////////
0093 // Uncomment to enable wchar_t support (convert to utf8)
0094 //
0095 // #define SPDLOG_WCHAR_TO_UTF8_SUPPORT
0096 ///////////////////////////////////////////////////////////////////////////////
0097 
0098 ///////////////////////////////////////////////////////////////////////////////
0099 // Uncomment to prevent child processes from inheriting log file descriptors
0100 //
0101 // #define SPDLOG_PREVENT_CHILD_FD
0102 ///////////////////////////////////////////////////////////////////////////////
0103 
0104 ///////////////////////////////////////////////////////////////////////////////
0105 // Uncomment to customize level names (e.g. "MY TRACE")
0106 //
0107 // #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING", "MY ERROR", "MY
0108 // CRITICAL", "OFF" }
0109 ///////////////////////////////////////////////////////////////////////////////
0110 
0111 ///////////////////////////////////////////////////////////////////////////////
0112 // Uncomment to customize short level names (e.g. "MT")
0113 // These can be longer than one character.
0114 //
0115 // #define SPDLOG_SHORT_LEVEL_NAMES { "T", "D", "I", "W", "E", "C", "O" }
0116 ///////////////////////////////////////////////////////////////////////////////
0117 
0118 ///////////////////////////////////////////////////////////////////////////////
0119 // Uncomment to disable default logger creation.
0120 // This might save some (very) small initialization time if no default logger is needed.
0121 //
0122 // #define SPDLOG_DISABLE_DEFAULT_LOGGER
0123 ///////////////////////////////////////////////////////////////////////////////
0124 
0125 ///////////////////////////////////////////////////////////////////////////////
0126 // Uncomment and set to compile time level with zero cost (default is INFO).
0127 // Macros like SPDLOG_DEBUG(..), SPDLOG_INFO(..)  will expand to empty statements if not enabled
0128 //
0129 // #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
0130 ///////////////////////////////////////////////////////////////////////////////
0131 
0132 ///////////////////////////////////////////////////////////////////////////////
0133 // Uncomment (and change if desired) macro to use for function names.
0134 // This is compiler dependent.
0135 // __PRETTY_FUNCTION__ might be nicer in clang/gcc, and __FUNCTION__ in msvc.
0136 // Defaults to __FUNCTION__ (should work on all compilers) if not defined.
0137 //
0138 // #ifdef __PRETTY_FUNCTION__
0139 // # define SPDLOG_FUNCTION __PRETTY_FUNCTION__
0140 // #else
0141 // # define SPDLOG_FUNCTION __FUNCTION__
0142 // #endif
0143 ///////////////////////////////////////////////////////////////////////////////