6
namespace SyntopiaCore {
8
/// Predefined logging levels
9
enum LogLevel { NoneLevel, DebugLevel, TimingLevel, InfoLevel, WarningLevel, CriticalLevel, AllLevel };
11
/// Abstract base class for all loggers
14
/// The destructors and constructors automatically add to the list of installed loggers.
20
// Remove from list of available loggers.
21
for (int i = loggers.size()-1; i >= 0; i--) {
22
if (loggers[i] == this) loggers.remove(i);
26
/// This method all loggers must implement
27
virtual void log(QString message, LogLevel priority) = 0;
29
/// Log messages are sent to this list of loggers.
30
static QVector<Logger*> loggers;
34
void LOG(QString message, LogLevel priority);
37
void Debug(QString text);
38
void INFO(QString text);
39
void WARNING(QString text);
40
void CRITICAL(QString text);