Imported files from the existing L3 code directories (../src, ../comp,
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCLog.h
CommitLineData
a6c02c85 1// @(#) $Id$
2
3#ifndef ALIHLTTPCLOG_H
4#define ALIHLTTPCLOG_H
5
6class AliHLTTPCLog {
7 public:
8 enum TLogLevel { kNone = 0, kDebug= 0x01, kInformational = 0x02, kWarning = 0x04, kError = 0x08 , kFatal = 0x10, kPrimary = 0x80, kAll = 0x9F };
9 enum TLogCmd { kEnd, kPrec, kHex, kDec };
10 static TLogLevel fgLevel;
11};
12
13#if __GNUC__ == 3
14#define LOG( lvl, origin, keyword ) \
15 if (lvl>=AliHLTTPCLog::fgLevel) std::cerr<<"["<<origin<<": "<<keyword<<"] "
16#define ENDLOG std::endl
17#else
18#define LOG( lvl, origin, keyword ) \
19 if (lvl>=AliHLTTPCLog::fgLevel) cerr<<"["<<origin<<": "<<keyword<<"] "
20#define ENDLOG endl
21#endif /* __GNUC__ */
22#endif /* ALIHLTTPCLOG_H */