]>
Commit | Line | Data |
---|---|---|
108615fc | 1 | #ifndef ALIL3LOGGING_H |
2 | #define ALIL3LOGGING_H | |
3 | ||
108615fc | 4 | #ifdef use_logging |
5 | ||
05d3c0f8 | 6 | #include <MLUCLog.hpp> |
7 | #include <MLUCLogServer.hpp> | |
108615fc | 8 | |
9 | typedef MLUCLog AliL3Log; | |
10 | typedef MLUCLogServer AliL3LogServer; | |
11 | typedef MLUCDevNullLogServer AliL3DevNullLogServer; | |
12 | typedef MLUCStdoutLogServer AliL3StdoutLogServer; | |
13 | typedef MLUCStderrLogServer AliL3StderrLogServer; | |
14 | typedef MLUCStreamLogServer AliL3StreamLogServer; | |
15 | ||
16 | #else | |
17 | #include <iostream.h> | |
18 | class AliL3Log{ | |
19 | public: | |
20 | enum TLogLevel { kNone = 0, kDebug= 0x01, kInformational = 0x02, kWarning = 0x04, kError = 0x08 , kFatal = 0x10, kPrimary = 0x80, kAll = 0x9F }; | |
21 | enum TLogCmd { kEnd, kPrec, kHex, kDec }; | |
22 | }; | |
23 | ||
8ed0eb3e | 24 | #define LOG( lvl, origin, keyword ) cerr<<"["<<origin<<": "<<keyword<<"] " |
108615fc | 25 | |
26 | #define ENDLOG endl | |
27 | ||
28 | #endif | |
29 | #endif // ALIL3LOGGING_H | |
30 | ||
31 |