]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
4499ed26 | 3 | #ifndef ALIL3LOGGER_H |
4 | #define ALIL3LOGGER_H | |
5 | ||
6 | #include "AliL3RootTypes.h" | |
3e87ef69 | 7 | #include "AliL3StandardIncludes.h" |
118c26c3 | 8 | |
108615fc | 9 | class MLUCLogServer; |
108615fc | 10 | |
b1ed0288 | 11 | class AliL3Logger { |
12 | ||
13 | public: | |
14 | ||
108615fc | 15 | AliL3Logger(); |
4499ed26 | 16 | virtual ~AliL3Logger(); |
b1ed0288 | 17 | |
02f030e3 | 18 | void Set(Int_t l); |
19 | void UnSet(Int_t l); | |
108615fc | 20 | void UseDevNull(); |
21 | void UseStdout(); | |
22 | void UseStderr(); | |
23 | void UseStream(char *name="AliLevel3.log"); | |
24 | void NotUseDevNull(); | |
25 | void NotUseStdout(); | |
26 | void NotUseStderr(); | |
27 | void NotUseStream(); | |
b1ed0288 | 28 | |
29 | protected: | |
30 | ||
31 | static Int_t fgAll; //level all | |
32 | static Int_t fgDebug; //level debug | |
33 | static Int_t fgInformational; //level info | |
34 | static Int_t fgWarning; //level warning | |
35 | static Int_t fgError; //level error | |
36 | static Int_t fgFatal; //level fatal | |
37 | ||
38 | private: | |
39 | ||
40 | MLUCLogServer *fdn; //! | |
41 | MLUCLogServer *fso; //! | |
42 | MLUCLogServer *fse; //! | |
43 | MLUCLogServer *fsm; //! | |
0bd0c1ef | 44 | #if __GNUC__ == 3 |
b1ed0288 | 45 | std::ofstream *fof; //! |
118c26c3 | 46 | #else |
b1ed0288 | 47 | ofstream *fof; //! |
118c26c3 | 48 | #endif |
4499ed26 | 49 | |
50 | ClassDef(AliL3Logger,1) | |
108615fc | 51 | }; |
52 | ||
4499ed26 | 53 | #endif |
108615fc | 54 |