API Documentation
|
A class that has any number of children that also feed into the log. Can be used to easily collect logs from a variaty of different streams. More...
#include <LogManager.h>
Public Types | |
enum | MoveMode { e_move , e_copy , e_ignore } |
Public Member Functions | |
void | addLog (const String &name, ProgressInfo *info) |
virtual bool | addMessage (const char *const, uint01=10) override |
virtual bool | addMessage (const LogMessage &) override |
virtual bool | addMessage (const String &, uint01=10) override |
virtual bool | addMessage (const TranslatedString &, uint01=10) override |
void | addStream (LogStream *stream, bool add_all) override |
virtual void | allowCancel (bool) override |
ProgressInfo * | defaultLog () const |
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) |
void | removeStream (LogStream *stream) override |
virtual void | setCancelRequest (bool) override |
void | setDefaultAsciiLogPath (const File &file, MoveMode mode) |
virtual bool | setProgress (fltp04) override |
void | writeToFile (BinaryFile &file, uint01 minimum_log_level, CompressionMode mode=CompressionMode::e_default_compression) |
Public Member Functions inherited from ProgressInfo | |
virtual bool | cancelRequested () const |
ProgressInfo () noexcept | |
virtual | ~ProgressInfo () |
Public Attributes | |
Dictionary< String, AsciiFileOutputStream * > | m_ascii_streams |
File | m_default_ascii_log_path |
Dictionary< String, ProgressInfo * > | m_logs |
Buffer< LogStream * > | m_streams |
A class that has any number of children that also feed into the log. Can be used to easily collect logs from a variaty of different streams.
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 |