LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Logging::RollingFileSink Class Reference

#include <logging.hpp>

Inherits LiteFX::Logging::ISink.

Classes

class  RollingFileSinkImpl
 

Public Member Functions

 RollingFileSink (const String &fileName, const LogLevel &level=LogLevel::Info, const String &pattern="%+", const bool &truncate=false, const int &maxFiles=0)
 
 RollingFileSink (const RollingFileSink &)=delete
 
 RollingFileSink (RollingFileSink &&)=delete
 
virtual ~RollingFileSink () noexcept
 
virtual LogLevel getLevel () const override
 Gets the minimum log level for messages to get written to the log. More...
 
virtual String getName () const override
 Gets the name of the sink. More...
 
virtual String getPattern () const override
 Gets the pattern used to format the messages for the sink. More...
 
virtual String getFileName () const
 
virtual bool getTruncate () const
 
virtual int getMaxFiles () const
 
virtual LogLevel getLevel () const =0
 Gets the minimum log level for messages to get written to the log. More...
 
virtual String getName () const =0
 Gets the name of the sink. More...
 
virtual String getPattern () const =0
 Gets the pattern used to format the messages for the sink. More...
 

Protected Member Functions

virtual spdlog::sink_ptr get () const override
 
virtual spdlog::sink_ptr get () const =0
 

Constructor & Destructor Documentation

◆ RollingFileSink() [1/3]

RollingFileSink::RollingFileSink ( const String fileName,
const LogLevel &  level = LogLevel::Info,
const String pattern = "%+",
const bool &  truncate = false,
const int &  maxFiles = 0 
)

◆ RollingFileSink() [2/3]

LiteFX::Logging::RollingFileSink::RollingFileSink ( const RollingFileSink )
delete

◆ RollingFileSink() [3/3]

LiteFX::Logging::RollingFileSink::RollingFileSink ( RollingFileSink &&  )
delete

◆ ~RollingFileSink()

RollingFileSink::~RollingFileSink ( )
virtualdefaultnoexcept

Member Function Documentation

◆ get()

spdlog::sink_ptr RollingFileSink::get ( ) const
overrideprotectedvirtual

◆ getFileName()

String RollingFileSink::getFileName ( ) const
virtual

◆ getLevel()

LogLevel RollingFileSink::getLevel ( ) const
overridevirtual

Gets the minimum log level for messages to get written to the log.

Implements LiteFX::Logging::ISink.

◆ getMaxFiles()

int RollingFileSink::getMaxFiles ( ) const
virtual

◆ getName()

String RollingFileSink::getName ( ) const
overridevirtual

Gets the name of the sink.

Implements LiteFX::Logging::ISink.

◆ getPattern()

String RollingFileSink::getPattern ( ) const
overridevirtual

Gets the pattern used to format the messages for the sink.

Implements LiteFX::Logging::ISink.

◆ getTruncate()

bool RollingFileSink::getTruncate ( ) const
virtual