Update file_sinks.h

This commit is contained in:
Erik 2018-04-11 22:15:50 +05:00 committed by GitHub
parent 6f12242a55
commit 06580c8333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,6 +287,11 @@ public:
_current_size = _file_helper.size(); // expensive. called only once
}
~step_file_sink()
{
close_current_file();
}
protected:
void _sink_it(const details::log_msg &msg) override
{
@ -306,7 +311,6 @@ protected:
void _flush() override
{
_file_helper.flush();
close_current_file();
}
private: