Skip to content

LiteFX::Logging::RollingFileSink

Writes log messages to a rolling file.

Synopsis

Declared in <litefx/logging.hpp>

class [[dllexport, dllimport]] RollingFileSink
    : public ISink

Base Classes

NameDescription
ISinkInterface for a class that receives log messages.

Member Functions

NameDescription
RollingFileSink [constructor]Creates a new rolling file sink instance.
~RollingFileSink [destructor] [virtual]Destructor
operator= Assignment operators
getFileName [virtual]Gets the file name of the log file.
getLevel [virtual]Gets the minimum log level for messages to get written to the log.
getMaxFiles [virtual]Returns the maximum number of log files to keep.
getName [virtual]Gets the name of the sink.
getPattern [virtual]Gets the pattern used to format the messages for the sink.
getTruncate [virtual]Returns true, if the log messages should be truncated to the contents of the file, or false if existing messages are overwritten.

Protected Member Functions

NameDescription
operator= Assignment operators
get [virtual]

Friends

NameDescription
LiteFX::Logging::RollingFileSink::RollingFileSinkImpl
LiteFX::PimplPtrA smart pointer that manages an implementation instance for a public interface class.