Boost logo

Boost Users :

Subject: [Boost-users] [Boost.Log] logging only in a debug build
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2014-03-03 06:09:28


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net