21 #ifndef __ANTARES_LIBS_LOGS_LOGS_H__
22 #define __ANTARES_LIBS_LOGS_LOGS_H__
24 #include <yuni/yuni.h>
25 #include "yuni/core/logs/decorators/message.h"
26 #include "yuni/core/logs/decorators/time.h"
27 #include "yuni/core/logs/decorators/verbositylevel.h"
28 #include "yuni/core/logs/handler/file.h"
29 #include "yuni/core/logs/handler/stdcout.h"
30 #include "yuni/core/logs/logs.h"
38 #define LOG_APPLICATION_NAME "antares"
40 #define LOG_APPLICATION_VENDOR "RTE"
43 #define LOG_UI "[UI] "
46 #define LOG_PROGRESSION "[UI] progression: "
49 #define LOG_UI_PROGRESSION_MAP "[UI] Progression map: "
52 #define LOG_UI_DISPLAY_MESSAGES_ON "[UI] Display messages: On"
54 #define LOG_UI_DISPLAY_MESSAGES_OFF "[UI] Display messages: Off"
56 #define LOG_UI_HIDE_PROGRESSBAR "[UI] Progression: Off"
58 #define LOG_UI_SOLVER_DONE "[UI] Quitting the solver gracefully"
61 #include <yuni/core/logs.h>
62 #include <yuni/core/logs/decorators/applicationname.h>
63 #include <yuni/core/logs/handler/callback.h>
68 using LoggingHandlers = Yuni::Logs::StdCout<
70 Yuni::Logs::Callback<>
74 using LoggingDecorators = Yuni::Logs::Time<
75 Yuni::Logs::ApplicationName<
76 Yuni::Logs::VerbosityLevel<
81 extern Yuni::Logs::Logger<LoggingHandlers, LoggingDecorators> logs;
112 void LogDisplayErrorInfos(uint errors,
115 bool printAsError =
true);
int LogCompatibility(const char format[],...)
Generate a compatibility notice.
Definition: logs.cpp:34