mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
Allow filename/line number at all levels. Add function name %! support.
This commit is contained in:
@@ -133,4 +133,27 @@
|
||||
// Macros like SPDLOG_DEBUG(..), SPDLOG_INFO(..) will expand to empty statements if not enabled
|
||||
//
|
||||
// #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to enable file name, file number and function name macros.
|
||||
// Used in macros like SPDLOG_DEBUG(..), SPDLOG_INFO(..) etc
|
||||
//
|
||||
// #define SPDLOG_SOURCE_MACROS_ON
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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.
|
||||
//
|
||||
// #define SPDLOG_FUNCTION __PRETTY_FUNCTION__
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment (and change if desired) string to add to the end of functions names.
|
||||
// Used in macros like SPDLOG_DEBUG(..), SPDLOG_INFO(..) etc
|
||||
//
|
||||
// #define SPDLOG_FUNCTION_SUFFIX "()"
|
||||
///////////////////////////////////////////////////////////////////////////////
|
Reference in New Issue
Block a user