template<class msg_type> void operator()(msg_type & str) const { bool is_needed = true; if ( ! convert::get_underlying_string(str).empty()) if ( *(convert::get_underlying_string(str).rbegin()) == '\n') is_needed = false; if ( is_needed) convert::write( HPX_LOG_STR("\n"), str ); }
// when we enter here, we know the logger is enabled hold_string_type gathered_info() { hold_string_type str = m_out.str(); m_gather.do_gather(str); return HPX_LOG_STR("start of ") + str; }
template<class msg_type> void operator()(msg_type & str) const { convert::write( HPX_LOG_STR("\n"), str ); }
stream_type & get() { stream_type & val = *(m_cache.get()); val.str( HPX_LOG_STR("") ); return val; }