[log] disabling logging at compile-time

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[log] disabling logging at compile-time

Igor R.
Is it possible to completely eliminate the logging code (i.e. the
run-time overhead) using some macro?

Thanks.
_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: [log] disabling logging at compile-time

Klaim - Joël Lamotte

On 2 January 2017 at 08:05, Igor R <[hidden email]> wrote:
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



_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users