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:
Johann Dreo 2021-12-19 08:38:13 +01:00
commit c871336f6d
46 changed files with 880 additions and 833 deletions

View file

@ -181,6 +181,10 @@ and its default with the `CLUTCHLOG_DEFAULT_DEPTH_MARK` macro:
log.depth_mark(CLUTCHLOG_DEFAULT_DEPTH_MARK); // Defaults to ">".
```
By default, clutchlog removes 5 levels of the calls stack, so that your `main`
entrypoint corresponds to a depth of zero.
You can change this behaviour by defining the `CLUTCHLOG_STRIP_CALLS` macro.
Output style
------------