2 // Original: AliHLTLog.cxx,v 1.1 2004/05/14 09:37:22 loizides
4 // lagacy logging methods for HLT TPC code
6 // refer to README to build package //
8 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt //
10 #include "AliHLTTPCLog.h"
12 AliHLTTPCLog::TLogLevel AliHLTTPCLog::fgLevel=AliHLTTPCLog::kNone;
14 const char* AliHLTTPCLog::kEnd = "";
15 const char* AliHLTTPCLog::kPrec = "";
16 const char* AliHLTTPCLog::kHex = "";
17 const char* AliHLTTPCLog::kDec = "";
19 stringstream AliHLTTPCLog::fgStream;
21 AliHLTLogging AliHLTTPCLog::fgHLTLogging;
23 const char* AliHLTTPCLog::Flush()
25 // see header file for class documentation
33 while (!fgStream.eof()) {
35 if (scanStatus==0 && iter.compare(AliHLTTPCLogKeyOrigin)==0) {
36 // idicate scan of origin message
39 } else if (scanStatus==1 && iter.compare(AliHLTTPCLogKeyKeyword)==0) {
40 // idicate scan of keyword message
43 } else if (scanStatus==2 && iter.compare(AliHLTTPCLogKeyMessage)==0) {
49 if (!origin.empty()) origin+=" ";
53 if (!keyword.empty()) keyword+=" ";
57 // if we have come here already for the first word, we don't
58 // expect origin and keyword any more
60 if (!message.empty()) message+=" ";
65 // flush the string stream and send out through the logging system
68 fgHLTLogging.Logging(kHLTLogDebug, origin.c_str(), keyword.c_str(), message.c_str());
71 fgHLTLogging.Logging(kHLTLogInfo, origin.c_str(), keyword.c_str(), message.c_str());
74 fgHLTLogging.Logging(kHLTLogWarning, origin.c_str(), keyword.c_str(), message.c_str());
77 fgHLTLogging.Logging(kHLTLogError, origin.c_str(), keyword.c_str(), message.c_str());
81 fgHLTLogging.Logging(kHLTLogFatal, origin.c_str(), keyword.c_str(), message.c_str());