Contents

class

SushiEngine::Logging::RotatingFileSink

Appends formatted lines to <stem>.log and shifts it to <stem>.1.log when full.

Declared in
engine/foundation/logging/include/SushiEngine/logging/rotating_file_sink.hpp
Inherits
SushiEngine::Logging::ILogSink

Public Methods

RotatingFileSink

Opens the live file for appending, rotating first if it is already full.

~RotatingFileSink

Flushes and closes the live file.

operator=

Refuses copy assignment.

is_open

Returns true when the live file is open.

rotation_failure_count

Returns how many rotation attempts and short writes have failed.

write

Formats each record with format_log_line and writes it.

flush

Flushes the underlying stream.