123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
- // Distributed under the MIT License (http://opensource.org/licenses/MIT)
- ///////////////////////////////////////////////////////////////////////////////
- //
- // Edit this file to squeeze more performance, and to customize supported
- // features
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
- // This clock is less accurate - can be off by dozens of millis - depending on
- // the kernel HZ.
- // Uncomment to use it instead of the regular clock.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment if source location logging is not needed.
- // This will prevent spdlog from using __FILE__, __LINE__ and SPDLOG_FUNCTION
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).
- // This will prevent spdlog from querying the thread id on each log call.
- //
- // WARNING: If the log pattern contains thread id (i.e, %t) while this flag is
- // on, zero will be logged as thread id.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to prevent spdlog from using thread local storage.
- //
- // WARNING: if your program forks, UNCOMMENT this flag to prevent undefined
- // thread ids in the children logs.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to avoid spdlog's usage of atomic log levels
- // Use only if your code never modifies a logger's log levels concurrently by
- // different threads.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to enable usage of wchar_t for file names on Windows.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to override default eol ("\n" or "\r\n" under Linux/Windows)
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to override default folder separators ("/" or "\\/" under
- // Linux/Windows). Each character in the string is treated as a different
- // separator.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to use your own copy of the fmt library instead of spdlog's copy.
- // In this case spdlog will try to include <fmt/format.h> so set your -I flag
- // accordingly.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to use C++20 std::format instead of fmt.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to enable wchar_t support (convert to utf8)
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to prevent child processes from inheriting log file descriptors
- //
- //
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to customize level names (e.g. "MY TRACE")
- //
- //
- // CRITICAL", "OFF" }
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to customize short level names (e.g. "MT")
- // These can be longer than one character.
- //
- // #define SPDLOG_SHORT_LEVEL_NAMES { "T", "D", "I", "W", "E", "C", "O" }
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment to disable default logger creation.
- // This might save some (very) small initialization time if no default logger is needed.
- //
- // #define SPDLOG_DISABLE_DEFAULT_LOGGER
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment and set to compile time level with zero cost (default is INFO).
- // Macros like SPDLOG_DEBUG(..), SPDLOG_INFO(..) will expand to empty statements if not enabled
- //
- // #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
- ///////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////
- // Uncomment (and change if desired) macro to use for function names.
- // This is compiler dependent.
- // __PRETTY_FUNCTION__ might be nicer in clang/gcc, and __FUNCTION__ in msvc.
- // Defaults to __FUNCTION__ (should work on all compilers) if not defined.
- //
- // #ifdef __PRETTY_FUNCTION__
- // # define SPDLOG_FUNCTION __PRETTY_FUNCTION__
- // #else
- // # define SPDLOG_FUNCTION __FUNCTION__
- // #endif
- ///////////////////////////////////////////////////////////////////////////////
|