
From: John Torjo <john.lists@torjo.com>
The main reason for requiring a macro was for efficiency, so that logging statements could easily be disabled.
No matter what, you'll somehow need to do something like:
// equivalent of: BOOST_LOG (some_log) << the << things << to << output;
if ( is_enabled(some_log)) some_log << the << things << to << output;
Which to me seems tedious and you can easily forget to write that.
Yes, something like that is necessary. I also agree that it is tedious and easily forgotten. The question is whether there is a way to capture that idea in such a way that it cannot be forgotten without adding additional overhead or tedium. -- Rob Stewart stewart@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;