]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/rec/AliHLTDynamicAliLog.cxx
Adding OADB to CMake
[u/mrichter/AliRoot.git] / HLT / rec / AliHLTDynamicAliLog.cxx
index 18150101e3d4c3d2b60074c919cbacb25a487767..88d29c94edfd5353464a8c42abe65e682a65062d 100644 (file)
@@ -134,7 +134,11 @@ extern "C" int InitAliDynamicMessageCallback()
   // older versions of AliLog does not support the notification callback and
   // stringstreams, but they support the logging macros in general
 #ifndef NO_ALILOG_NOTIFICATION
-  AliLog* log=new AliLog;
+#ifndef NO_ALILOG_GETROOTLOGGER
+  AliLog* log = AliLog::GetRootLogger();
+#else
+  AliLog* log = new AliLog;
+#endif //NO_ALILOG_GETROOTLOGGER
   log->SetLogNotification(LogNotification);
   log->SetStreamOutput(&AliHLTLogging::fgLogstr);
   log->SetPrintScope(true);