feat: add log message for log test
This commit is contained in:
@@ -55,14 +55,20 @@ class LogTest : ITest
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
createAndSetupConsole();
|
createAndSetupConsole();
|
||||||
#endif
|
#endif
|
||||||
|
logInfo("Instantiating logger");
|
||||||
Logger log("TestLogger");
|
Logger log("TestLogger");
|
||||||
|
|
||||||
|
logInfo("Registering sink");
|
||||||
log.addSink(std::make_shared<TestLogSink>());
|
log.addSink(std::make_shared<TestLogSink>());
|
||||||
|
|
||||||
|
logInfo("Calling log functions");
|
||||||
log.verbose("verbose log");
|
log.verbose("verbose log");
|
||||||
log.info("info log");
|
log.info("info log");
|
||||||
log.warning("warning log");
|
log.warning("warning log");
|
||||||
log.error("error log");
|
log.error("error log");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual const char* getName() override { return "LogTest"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
static LogTest g_logTest;
|
static LogTest g_logTest;
|
||||||
|
|||||||
Reference in New Issue
Block a user