We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a6f07c commit 9fbdc49Copy full SHA for 9fbdc49
1 file changed
apps/Alf.cxx
@@ -108,7 +108,9 @@ class Alf : public AliceO2::Common::Program
108
maxFiles = static_cast<unsigned int>(std::stoul(mOptions.dimLogFileConfig.substr(start)));
109
}
110
111
- alfDebugLog.setLogFile(path.c_str(), maxBytes, maxFiles, 1);
+ const char* debugLogFile = path.c_str();
112
+ if (path == "stdout") debugLogFile = NULL; // handle special string to set logs go to stdout
113
+ alfDebugLog.setLogFile(debugLogFile, maxBytes, maxFiles, 1);
114
alfDebugLog.setOutputFormat(SimpleLog::FormatOption::ShowTimeStamp | SimpleLog::FormatOption::ShowSeveritySymbol | SimpleLog::FormatOption::ShowMessage );
115
alfDebugLog.info("ALF starting");
116
} else {
0 commit comments