API Documentation
Loading...
Searching...
No Matches
LogManager Class Reference

#include <LogManager.h>

Inheritance diagram for LogManager:
[legend]
Collaboration diagram for LogManager:
[legend]

Public Types

enum  MoveMode { e_move , e_copy , e_ignore }
 

Public Member Functions

bool hasLog (const String &log_name) const
 
ProgressInfogetLog (const String &log_name) const
 
ProgressInfodefaultLog () const
 
void writeToFile (BinaryFile &file, uint01 minimum_log_level, CompressionMode mode=CompressionMode::e_default_compression)
 
void addStream (LogStream *stream, bool add_all) override
 
void addLog (const String &name, ProgressInfo *info)
 
void removeStream (LogStream *stream) override
 
void setDefaultAsciiLogPath (const File &file, MoveMode mode)
 
virtual bool setProgress (fltp04) override
 
virtual void allowCancel (bool) override
 
const Dictionary< String, ProgressInfo * > & logs ()
 
virtual bool addMessage (const TranslatedString &, uint01=10) override
 
virtual bool addMessage (const LogMessage &) override
 
virtual bool addMessage (const String &, uint01=10) override
 
virtual bool addMessage (const char *const, uint01=10) override
 
void logStartupInformation (const String &log) const
 
virtual void setCancelRequest (bool) override
 
void readFromFile (BinaryFile &file)
 
- Public Member Functions inherited from ProgressInfo
 ProgressInfo () noexcept
 
virtual ~ProgressInfo ()
 
virtual bool cancelRequested () const
 

Public Attributes

Dictionary< String, ProgressInfo * > m_logs
 
Buffer< LogStream * > m_streams
 
Dictionary< String, AsciiFileOutputStream * > m_ascii_streams
 
File m_default_ascii_log_path
 

Member Enumeration Documentation

◆ MoveMode

enum MoveMode
Enumerator
e_move 
e_copy 
e_ignore 

Member Function Documentation

◆ addLog()

void addLog ( const String & name,
ProgressInfo * info )

◆ addMessage() [1/4]

bool addMessage ( const char * const message,
uint01 priority = 10 )
overridevirtual

Implements ProgressInfo.

◆ addMessage() [2/4]

bool addMessage ( const LogMessage & message)
overridevirtual

Implements ProgressInfo.

◆ addMessage() [3/4]

bool addMessage ( const String & s,
uint01 priority = 10 )
overridevirtual

Implements ProgressInfo.

◆ addMessage() [4/4]

bool addMessage ( const TranslatedString & message,
uint01 priority = 10 )
overridevirtual

Implements ProgressInfo.

◆ addStream()

void addStream ( LogStream * stream,
bool add_all )
overridevirtual

Reimplemented from ProgressInfo.

◆ allowCancel()

void allowCancel ( bool allow)
overridevirtual

Implements ProgressInfo.

◆ defaultLog()

ProgressInfo * defaultLog ( ) const
inline

◆ getLog()

ProgressInfo * getLog ( const String & log_name) const

◆ hasLog()

bool hasLog ( const String & log_name) const

◆ logs()

const Dictionary< String, ProgressInfo * > & logs ( )

◆ logStartupInformation()

void logStartupInformation ( const String & log) const

◆ readFromFile()

void readFromFile ( BinaryFile & file)

◆ removeStream()

void removeStream ( LogStream * stream)
overridevirtual

Reimplemented from ProgressInfo.

◆ setCancelRequest()

void setCancelRequest ( bool cancel)
overridevirtual

Reimplemented from ProgressInfo.

◆ setDefaultAsciiLogPath()

void setDefaultAsciiLogPath ( const File & file,
MoveMode mode )

◆ setProgress()

bool setProgress ( fltp04 progress)
overridevirtual

Implements ProgressInfo.

◆ writeToFile()

void writeToFile ( BinaryFile & file,
uint01 minimum_log_level,
CompressionMode mode = CompressionMode::e_default_compression )

Member Data Documentation

◆ m_ascii_streams

◆ m_default_ascii_log_path

File m_default_ascii_log_path

◆ m_logs

Dictionary<String, ProgressInfo*> m_logs
mutable

◆ m_streams

Buffer<LogStream*> m_streams

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