mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:40:05 +08:00
Update file_sinks.h
This commit is contained in:
@@ -286,6 +286,11 @@ public:
|
|||||||
_file_helper.open(_current_filename);
|
_file_helper.open(_current_filename);
|
||||||
_current_size = _file_helper.size(); // expensive. called only once
|
_current_size = _file_helper.size(); // expensive. called only once
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~step_file_sink()
|
||||||
|
{
|
||||||
|
close_current_file();
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void _sink_it(const details::log_msg &msg) override
|
void _sink_it(const details::log_msg &msg) override
|
||||||
@@ -306,7 +311,6 @@ protected:
|
|||||||
void _flush() override
|
void _flush() override
|
||||||
{
|
{
|
||||||
_file_helper.flush();
|
_file_helper.flush();
|
||||||
close_current_file();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user