24 fLog.SetProcessMethod(
"ToLog_0");
50 fLog.SetProcessMethod(
"ToLog_1");
81 fLog.SetProcessMethod(
"ToLog_2");
82 if (
fLog.IsDebug(2) ) {
83 fLog <<
"It could be boring the send debug lines line by line " <<
nline;
84 fLog <<
"thus, it could be done using IsDebug() " <<
nline;
90 fLog.SetLevel(LogMessage::kWarning,1);
91 fLog << i <<
" cannot be set to 2 " <<
nline;
92 fLog.SetLevel(LogMessage::kInfo,0);
96 if (
fLog.IsDebug(2) ) {
97 fLog <<
"It could be boring the send debug lines line by line " <<
nline;
98 fLog <<
"thus, it could be done using IsDebug() " <<
nline;
119 fLog.SetProcessMethod(
"ToLog_3");
124 fLog << i <<
" cannot be set to 3 " <<
nline;
138 printf(
"\n*************** Log cout, not depth *************** \n");
139 LogMessage::SetLogParameters(0,1);
154 printf(
"\n*************** Log cout, and depth *************** \n");
155 LogMessage::SetLogParameters();
175 OStreamCollector *test_collector =
new OStreamCollector(
"TestLOG.log");
176 CentralLog::theCentralLog()->Add( test_collector ) ;
177 CentralLog::theCentralLog()->ChangeCollector(std::string(
"TestLOG.log"));
179 printf(
"\n*************** Log file, and depth *************** \n");
190 printf(
"\n************** Log all to black hole ************** \n");
192 CentralLog::theCentralLog()->ChangeCollector(std::string(
"Null"));
203 printf(
"\n************** Cout and debug info ************** \n");
204 CentralLog::theCentralLog()->ChangeCollector(std::string(
"cout"));
205 LogMessage::SetLogParameters(2);
printf("******************************************************************** \n")
LogMessage & error(LogMessage &)
LogMessage & nline(LogMessage &)
LogMessage & info(LogMessage &)
manipulator to modify the LogMessage
LogMessage & dolog(LogMessage &)
LogMessage & debug(LogMessage &)
LogMessage fLog
send meesages to the log system