|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Uncomment if date/time logging is not needed and never appear in the log pattern.
|
|
|
|
|
// This will prevent spdlog from quering the clock on each log call.
|
|
|
|
|
// This will prevent spdlog from querying the clock on each log call.
|
|
|
|
|
//
|
|
|
|
|
// WARNING: If the log pattern contains any date/time while this flag is on, the result is undefined.
|
|
|
|
|
// You must set new pattern(spdlog::set_pattern(..") without any date/time in it
|
|
|
|
@ -34,7 +34,7 @@
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).
|
|
|
|
|
// This will prevent spdlog from quering the thread id on each log call.
|
|
|
|
|
// 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, the result is undefined.
|
|
|
|
|
//
|
|
|
|
@ -42,6 +42,16 @@
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Uncomment to prevent spdlog from caching thread ids in thread local storage.
|
|
|
|
|
// By default spdlog saves thread ids in tls to gain a few micros for each call.
|
|
|
|
|
//
|
|
|
|
|
// WARNING: if your program forks, UNCOMMENT this flag to prevent undefined thread ids in the children logs.
|
|
|
|
|
//
|
|
|
|
|
// #define SPDLOG_DISABLE_TID_CACHING
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Uncomment if logger name logging is not needed.
|
|
|
|
|
// This will prevent spdlog from copying the logger name on each log call.
|
|
|
|
@ -59,7 +69,7 @@
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Uncomment to avoid locking in the registry operations (spdlog::get(), spdlog::drop() spdlog::register()).
|
|
|
|
|
// Use only if your code never modifes concurrently the registry.
|
|
|
|
|
// Use only if your code never modifies concurrently the registry.
|
|
|
|
|
// Note that upon creating a logger the registry is modified by spdlog..
|
|
|
|
|
//
|
|
|
|
|
// #define SPDLOG_NO_REGISTRY_MUTEX
|
|
|
|
|