mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-14 17:52:05 +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
|
_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:
|
||||||
|
Loading…
Reference in New Issue
Block a user