WIP, reworking features

This commit is contained in:
emeric
2019-11-08 13:34:07 +01:00
parent f3c02a84ba
commit 07eae9cf96
18 changed files with 328 additions and 339 deletions
+8 -2
View File
@@ -51,8 +51,14 @@ enum class Module
UI,
};
std::string getModuleName(Module mod);
std::string getSeverityName(Severity sev);
const char* getModuleName(Module mod);
const char* getSeverityName(Severity sev);
TODO class logger
TODO class log entry
TODO configure logger to redirect to either Wt's logger or to a ostream
#define LMS_LOG(module, level) Wt::log(getSeverityName(Severity::level)) << Wt::WLogger::sep << "[" << getModuleName(Module::module) << "]" << Wt::WLogger::sep