
5 Mar
2008
5 Mar
'08
5:58 p.m.
void logging::restoreLogIndention() { std::ostringstream str; str << "indentation" << logIndentLevel; --logIndentLevel; ASSERT(logIndentLevel>=0); using namespace boost::logging; // the modifier will be changed soon, sync! flush_log_cache(); del_modifier("*", str.str()); }
Both addLogIndention() and restoreLogIndention() are also called in the constructor/destructor of a helper class to ensure a proper reset.
Yes indeed :) Just wanted to point out that it'll be in v3 - simple again :) Best, John -- http://John.Torjo.com -- C++ expert http://blog.torjo.com ... call me only if you want things done right