feat: add the CLUTCHLOG_STRIP_CALLS macro
To configure the default number of levels removed from the calls stack depth computations.
This commit is contained in:
parent
26a5461cc4
commit
c871336f6d
46 changed files with 880 additions and 833 deletions
|
|
@ -83,6 +83,10 @@ namespace fs = std::filesystem;
|
|||
#define CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG clutchlog::level::progress
|
||||
#endif // CLUTCHLOG_DEFAULT_DEPTH_BUILT
|
||||
|
||||
#ifndef CLUTCHLOG_STRIP_CALLS
|
||||
//! Number of call stack levels to remove from depth display by default.
|
||||
#define CLUTCHLOG_STRIP_CALLS 5
|
||||
#endif // CLUTCHLOG_STRIP_CALLS
|
||||
/** @} */
|
||||
|
||||
/** @addtogroup UseMacros High-level API macros
|
||||
|
|
@ -343,7 +347,7 @@ class clutchlog
|
|||
private:
|
||||
clutchlog() :
|
||||
// system, main, log
|
||||
_strip_calls(5),
|
||||
_strip_calls(CLUTCHLOG_STRIP_CALLS),
|
||||
_level_word({
|
||||
{level::critical,"Critical"},
|
||||
{level::error ,"Error"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue