Hi John, Of course I think it can do it but I don't know how to do that : with a standard file, I can set <flush-each-time> property. What's the way with a rolling file ? // standard file destination::file_settings settings2; *settings2.flush_each_time( true );* g_logger->writer().add_destination( destination::file file2( "file path" settings2 )); // rolling file destination::rolling_file_settings settings; settings.file_count( 10 ); settings.max_size_bytes( 5242880 ); // bytes = 5M g_logger->writer().add_destination( destination::rolling_file( "file path", settings ) ); Thanks, Benjamin John Torjo a écrit :
Hi Benjamin,
Hi all,
Glad you posted this here :)
Does anybody use boost::logging ?
I wonder if it's possible to flush logs in a rolling_file as in a standard file (flush_each_time) ? It would be nice !
Yes it would, and it can ;)
Note: there's a problem with your address :
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
benjamin.dedardel@medecom.fr SMTP error from remote mail server after RCPT TO:
: host SMTP2.lerelaisinternet.com [194.206.126.203]: 450 : Recipient address rejected: Greylisted for 5 minutes: retry timeout exceeded
Best, John