Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Log] logging only in a debug build
From: Robert Bielik (robert.bielik_at_[hidden])
Date: 2014-03-03 06:12:30

This is the way its usually done:

DEBUG(x) Boost.Log(x)
DEBUG(x) (void)

Then use the macro DEBUG instead, will make sure code is not emitted in release build.


Sean Farrow skrev 2014-03-03 12:09:
> Hi,
> Is there a way with Boost.Log to have logging code emitted in a debug build but completely removed for release.
> The only way I can come up with is to have #if defs and #endif’s scattered throughout the code.
> Has anyone come up with a better way?
> Any help appreciated.
> Kind Regards
> Sean.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at