2828#include < fairlogger/Logger.h>
2929
3030#include < InfoLogger/InfoLogger.hxx>
31+ #include < InfoLogger/InfoLoggerMacros.hxx>
3132#include < boost/program_options/options_description.hpp>
3233
3334#if defined(__linux__)
@@ -123,7 +124,7 @@ class DataDistLogger {
123124
124125 if (InfoLogEnabled (mSeverity )) {
125126 sInfoLogQueue ->push_capacity (cInfoLoggerQueueSize,
126- std::make_tuple (AliceO2::InfoLogger::InfoLogger::Severity::Fatal ,
127+ std::make_tuple (LogFatalOps ,
127128 std::string (std::string_view (mLogMessage .begin (), mLogMessage .size ()))
128129 ));
129130 }
@@ -135,7 +136,7 @@ class DataDistLogger {
135136
136137 if (InfoLogEnabled (mSeverity )) {
137138 sInfoLogQueue ->push_capacity (cInfoLoggerQueueSize,
138- std::make_tuple (AliceO2::InfoLogger::InfoLogger::Severity::Error ,
139+ std::make_tuple (LogErrorOps ,
139140 std::string (std::string_view (mLogMessage .begin (), mLogMessage .size ()))
140141 ));
141142 }
@@ -148,7 +149,7 @@ class DataDistLogger {
148149
149150 if (InfoLogEnabled (mSeverity )) {
150151 sInfoLogQueue ->push_capacity (cInfoLoggerQueueSize,
151- std::make_tuple (AliceO2::InfoLogger::InfoLogger::Severity::Warning ,
152+ std::make_tuple (LogWarningSupport ,
152153 std::string (std::string_view (mLogMessage .begin (), mLogMessage .size ()))
153154 ));
154155 }
@@ -161,7 +162,7 @@ class DataDistLogger {
161162
162163 if (InfoLogEnabled (mSeverity )) {
163164 sInfoLogQueue ->push_capacity (cInfoLoggerQueueSize,
164- std::make_tuple (AliceO2::InfoLogger::InfoLogger::Severity::Info ,
165+ std::make_tuple (LogInfoDevel ,
165166 std::string (std::string_view (mLogMessage .begin (), mLogMessage .size ()))
166167 ));
167168 }
@@ -174,7 +175,7 @@ class DataDistLogger {
174175
175176 if (InfoLogEnabled (mSeverity )) {
176177 sInfoLogQueue ->push_capacity (cInfoLoggerQueueSize,
177- std::make_tuple (AliceO2::InfoLogger::InfoLogger::Severity::Info ,
178+ std::make_tuple (LogInfoDevel ,
178179 std::string (std::string_view (mLogMessage .begin (), mLogMessage .size ()))
179180 ));
180181 }
@@ -187,7 +188,7 @@ class DataDistLogger {
187188
188189 if (InfoLogEnabled (mSeverity )) {
189190 sInfoLogQueue ->push_capacity (cInfoLoggerQueueSize,
190- std::make_tuple (AliceO2::InfoLogger::InfoLogger::Severity::Debug ,
191+ std::make_tuple (LogDebugDevel ,
191192 std::string (std::string_view (mLogMessage .begin (), mLogMessage .size ()))
192193 ));
193194 }
@@ -200,7 +201,7 @@ class DataDistLogger {
200201
201202 if (InfoLogEnabled (mSeverity )) {
202203 sInfoLogQueue ->push_capacity (cInfoLoggerQueueSize,
203- std::make_tuple (AliceO2::InfoLogger::InfoLogger::Severity::Debug ,
204+ std::make_tuple (LogDebugTrace ,
204205 std::string (std::string_view (mLogMessage .begin (), mLogMessage .size ()))
205206 ));
206207 }
@@ -233,7 +234,7 @@ class DataDistLogger {
233234 bool LogEnabled (const DataDistSeverity pSevVal) { return (InfoLogEnabled (pSevVal) || StdoutEnabled (pSevVal)); }
234235
235236 // InfoLogger queue
236- static std::unique_ptr<ConcurrentFifo<std::tuple<AliceO2::InfoLogger::InfoLogger::Severity , std::string>>> sInfoLogQueue ;
237+ static std::unique_ptr<ConcurrentFifo<std::tuple<AliceO2::InfoLogger::InfoLogger::InfoLoggerMessageOption , std::string>>> sInfoLogQueue ;
237238
238239private:
239240
@@ -345,7 +346,7 @@ struct DataDistLoggerCtx {
345346 sRunning = true ;
346347
347348 DataDistLogger::sInfoLogQueue =
348- std::make_unique<ConcurrentFifo<std::tuple<AliceO2::InfoLogger::InfoLogger::Severity , std::string>>>();
349+ std::make_unique<ConcurrentFifo<std::tuple<AliceO2::InfoLogger::InfoLogger::InfoLoggerMessageOption , std::string>>>();
349350
350351 fair::Logger::SetConsoleSeverity (fair::Severity::nolog);
351352 fair::Logger::SetFileSeverity (fair::Severity::nolog);
@@ -374,7 +375,7 @@ struct DataDistLoggerCtx {
374375 pthread_setname_np (pthread_self (), " infolog" );
375376#endif
376377
377- std::tuple<AliceO2::InfoLogger::InfoLogger::Severity , std::string> lLogVal;
378+ std::tuple<AliceO2::InfoLogger::InfoLogger::InfoLoggerMessageOption , std::string> lLogVal;
378379
379380 while (sRunning ) {
380381 if ( DataDistLogger::sInfoLogQueue ->pop (lLogVal) ){
0 commit comments