UTILLib 2.0
Common C++ library with utilities.
Loading...
Searching...
No Matches
util::log::LogToList Class Reference
Inheritance diagram for util::log::LogToList:
Collaboration diagram for util::log::LogToList:

Public Member Functions

 LogToList (std::string name)
const std::string & Name () const
void MaxSize (size_t max_size)
size_t MaxSize () const
void AddLogMessage (const LogMessage &message) override
 Handle a log message.
bool HasLogFile () const override
 Returns true if the logger has file.
size_t Size () const
size_t ChangeNumber () const
LogMessage GetLogMessage (size_t index) const
Public Member Functions inherited from util::log::ILogger
virtual ~ILogger ()=default
 Destructor.
virtual void Stop ()
 Stops any worker thread.
void EnableSeverityLevel (LogSeverity severity, bool enable)
 Enable or disable a severity.
bool IsSeverityLevelEnabled (LogSeverity severity) const
 Checks if a level is enabled or disabled.
void ShowLocation (bool show)
 Enable or disable the source location information.
bool ShowLocation () const
 Returns true if the source location should be shown.
virtual std::string Filename () const
 Return full path to the log file.

Additional Inherited Members

Protected Member Functions inherited from util::log::ILogger
 ILogger ()=default
 Constructor.

Member Function Documentation

◆ AddLogMessage()

void util::log::LogToList::AddLogMessage ( const LogMessage & message)
overridevirtual

Implements util::log::ILogger.

◆ HasLogFile()

bool util::log::LogToList::HasLogFile ( ) const
nodiscardoverridevirtual

Reimplemented from util::log::ILogger.


The documentation for this class was generated from the following file: