Discussion:
[log] disabling logging at compile-time
(too old to reply)
Igor R
2017-01-02 07:05:18 UTC
Permalink
Is it possible to completely eliminate the logging code (i.e. the
run-time overhead) using some macro?

Thanks.
Klaim - Joël Lamotte
2017-01-02 15:41:11 UTC
Permalink
Post by Igor R
Is it possible to completely eliminate the logging code (i.e. the
run-time overhead) using some macro?
Thanks.
You mean, when using Boost.Log's logging macros?

I have my own macros using Boost.Log as a backend, in which case I can
simply not compile
the logging code at all.

Joël Lamotte

Loading...