API Documentation
|
#include <LogManager.h>
Public Types | |
enum | MoveMode { e_move , e_copy , e_ignore } |
Public Member Functions | |
bool | hasLog (const String &log_name) const |
ProgressInfo * | getLog (const String &log_name) const |
ProgressInfo * | defaultLog () 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 |
enum MoveMode |
void addLog | ( | const String & | name, |
ProgressInfo * | info ) |
|
overridevirtual |
Implements ProgressInfo.
|
overridevirtual |
Implements ProgressInfo.
Implements ProgressInfo.
|
overridevirtual |
Implements ProgressInfo.
|
overridevirtual |
Reimplemented from ProgressInfo.
|
overridevirtual |
Implements ProgressInfo.
|
inline |
ProgressInfo * getLog | ( | const String & | log_name | ) | const |
bool hasLog | ( | const String & | log_name | ) | const |
const Dictionary< String, ProgressInfo * > & logs | ( | ) |
void logStartupInformation | ( | const String & | log | ) | const |
void readFromFile | ( | BinaryFile & | file | ) |
|
overridevirtual |
Reimplemented from ProgressInfo.
|
overridevirtual |
Reimplemented from ProgressInfo.
|
overridevirtual |
Implements ProgressInfo.
void writeToFile | ( | BinaryFile & | file, |
uint01 | minimum_log_level, | ||
CompressionMode | mode = CompressionMode::e_default_compression ) |
Dictionary<String, AsciiFileOutputStream*> m_ascii_streams |
File m_default_ascii_log_path |
|
mutable |