]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/src/AliL3Logger.h
Some changes resulting from last week work. The mc stuff has been removed.
[u/mrichter/AliRoot.git] / HLT / src / AliL3Logger.h
1 #ifndef ALIL3LOGGER_H
2 #define ALIL3LOGGER_H
3
4 #include "AliL3RootTypes.h"
5
6 #if GCCVERSION == 3
7 #include <fstream>
8 #include <iosfwd>
9 #else
10 #include <fstream.h>
11 #endif
12
13 class MLUCLogServer;
14 class ofstream;
15
16 class AliL3Logger{
17   public:
18   static int kAll;
19   static int kDebug;
20   static int kInformational;
21   static int kWarning;
22   static int kError;
23   static int kFatal;
24   AliL3Logger();
25   virtual ~AliL3Logger();
26   void Set(int l);
27   void UnSet(int l);
28   void UseDevNull();
29   void UseStdout();
30   void UseStderr();
31   void UseStream(char *name="AliLevel3.log");
32   void NotUseDevNull();
33   void NotUseStdout();
34   void NotUseStderr();
35   void NotUseStream();
36   private:
37   MLUCLogServer *dn; //!
38   MLUCLogServer *so; //!
39   MLUCLogServer *se; //!
40   MLUCLogServer *sm; //!
41 #if GCCVERSION == 3
42   std::ofstream *of; //!
43 #else  
44   ofstream *of; //!
45 #endif
46
47   ClassDef(AliL3Logger,1)
48 };
49
50 #endif
51