spdlog/include/spdlog/tweakme.h

54 lines
2.3 KiB
C
Raw Normal View History

2015-11-28 11:24:20 -05:00
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
2015-11-28 11:24:20 -05:00
//
// Edit this file to squeeze every last drop of performance out of spdlog.
2015-11-28 11:24:20 -05:00
//
///////////////////////////////////////////////////////////////////////////////
// Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
2015-05-09 14:35:17 -04:00
// 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 (but slower) clock.
// #define SPDLOG_CLOCK_COARSE
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncomment if date/time logging is not needed.
2015-04-10 05:34:57 -04:00
// This will prevent spdlog from quering the clock on each log call.
// #define SPDLOG_NO_DATETIME
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
2015-05-09 14:35:17 -04:00
// 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.
// #define SPDLOG_NO_THREAD_ID
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncomment if logger name logging is not needed.
// This will prevent spdlog from copying the logger name on each log call.
// #define SPDLOG_NO_NAME
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
2015-05-09 14:35:17 -04:00
// Uncomment to enable the SPDLOG_DEBUG/SPDLOG_TRACE macros.
// #define SPDLOG_DEBUG_ON
// #define SPDLOG_TRACE_ON
///////////////////////////////////////////////////////////////////////////////
2015-05-09 07:14:16 -04:00
2015-05-09 14:41:20 -04:00
///////////////////////////////////////////////////////////////////////////////
2015-05-09 14:35:17 -04:00
// Uncomment to avoid locking in the registry operations (spdlog::get(), spdlog::drop() spdlog::register()).
// Use only if your code never modifes concurrently the registry.
// Note that upon creating a logger the registry is modified by spdlog..
2015-05-09 14:39:55 -04:00
// #define SPDLOG_NO_REGISTRY_MUTEX
2015-05-09 14:41:20 -04:00
///////////////////////////////////////////////////////////////////////////////