mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-14 01:32:07 +08:00
Update file_sinks.h
This commit is contained in:
parent
6f12242a55
commit
06580c8333
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user