9
/// - Nested log entris
11
/// - Setting a log view level
14
namespace SyntopiaCore {
16
QVector<Logger*> Logger::loggers;
18
void LOG(QString message, LogLevel priority) {
20
// On Windows this allows us to see debug in the Output::Debug window while running.
22
OutputDebugString((LPCWSTR) (message+"\r\n").utf16());
25
for (int i = 0; i < Logger::loggers.size(); i++) {
26
Logger::loggers[i]->log(message, priority);
31
void Debug(QString text) { LOG(text, DebugLevel); }
32
void INFO(QString text) { LOG(text, InfoLevel); }
33
void WARNING(QString text) { LOG(text, WarningLevel); }
34
void CRITICAL(QString text) { LOG(text, CriticalLevel); }