int main(int, char*[]) { init_logging(); { BOOST_LOG_SCOPED_THREAD_TAG("RequestID", "Request1"); logging_function(); } { BOOST_LOG_SCOPED_THREAD_TAG("RequestID", "Request2"); logging_function(); } return 0; }
int main(int, char*[]) { init(); logging_function(); return 0; }
int main(int, char*[]) { init(); logging_function(); default_severity(); manual_logging(); return 0; }
//[ example_tutorial_attributes_timed_logging void timed_logging() { BOOST_LOG_SCOPED_THREAD_ATTR("Timeline", attrs::timer()); src::severity_logger< severity_level > slg; BOOST_LOG_SEV(slg, normal) << "Starting to time nested functions"; logging_function(); BOOST_LOG_SEV(slg, normal) << "Stopping to time nested functions"; }
int main(int, char*[]) { logging_function(logging::attribute_set()); return 0; }