3 ms·
In larger projects I have more commonly used logging-statements, each with its own log-level. Changing the log-level to log more is almost equivalent to using p
by Findecanor 4y ago
In larger projects I have more commonly used logging-statements, each with its own log-level.
Changing the log-level to log more is almost equivalent to using printf()s, only that you will get many more log-entries to wade through. But often that's fine: it is more annoying to forget to log something than to log more than necessary.
There is typically also both compile-time and run-time log-levels, so that you can disable logging in release builds but still keep all in the source code.