0

I have been creating a log with the macro BOOST_LOG_GLOBAL_LOGGER_INIT as :

typedef src::severity_logger_mt<severity_level> logger_t;

BOOST_LOG_GLOBAL_LOGGER_INIT(logger, src::severity_logger_mt)
{
logger_t lg;
logging::add_common_attributes();
...

but I could not find out how to specify my logger has to use a synchronous sink and enable auto-flushing after each log record written :-(

any idea on how to proceed ?

David
  • 1

1 Answers1

0

See this answer. You just create and configure the sink however you like and then set up filters so that the records from your logger are routed to the sink.

Community
  • 1
  • 1
Andrey Semashev
  • 10,046
  • 1
  • 17
  • 27