Subversion Repositories tpanel

Rev

Rev 247 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 247 Rev 250
Line 83... Line 83...
83
        static std::ostream *resetFlags(std::ostream *os);
83
        static std::ostream *resetFlags(std::ostream *os);
84
        static void resetFlags();
84
        static void resetFlags();
85
        static bool isStreamValid();
85
        static bool isStreamValid();
86
        static bool isStreamValid(std::ostream& os);
86
        static bool isStreamValid(std::ostream& os);
87
 
87
 
-
 
88
        static void startTemporaryLogLevel(unsigned int l);
-
 
89
        static void endTemporaryLogLevel();
-
 
90
 
88
    private:
91
    private:
89
        static unsigned int _getLevel(const std::string& slv);
92
        static unsigned int _getLevel(const std::string& slv);
90
        static void _init(bool reinit=false);
93
        static void _init(bool reinit=false);
91
 
94
 
92
        const TStreamError& operator=(const TStreamError& ref);
95
        const TStreamError& operator=(const TStreamError& ref);
93
 
96
 
94
        static bool mInitialized;
97
        static bool mInitialized;
95
        static std::string mLogfile;
98
        static std::string mLogfile;
96
        static unsigned int mLogLevel;
99
        static unsigned int mLogLevel;
-
 
100
        static unsigned int mLogLevelOld;
-
 
101
        static bool haveTemporaryLogLevel;
97
        static int mIndent;
102
        static int mIndent;
98
        static std::ostream *mStream;
103
        static std::ostream *mStream;
99
        static std::filebuf mOfStream;
104
        static std::filebuf mOfStream;
100
        static char *mBuffer;
105
        static char *mBuffer;
101
};
106
};
Line 165... Line 170...
165
#define IS_LOG_TRACE()      TStreamError::checkFilter(HLOG_TRACE)
170
#define IS_LOG_TRACE()      TStreamError::checkFilter(HLOG_TRACE)
166
#define IS_LOG_DEBUG()      TStreamError::checkFilter(HLOG_DEBUG)
171
#define IS_LOG_DEBUG()      TStreamError::checkFilter(HLOG_DEBUG)
167
#define IS_LOG_PROTOCOL()   TStreamError::checkFilter(HLOG_PROTOCOL)
172
#define IS_LOG_PROTOCOL()   TStreamError::checkFilter(HLOG_PROTOCOL)
168
#define IS_LOG_ALL()        TStreamError::checkFilter(HLOG_ALL)
173
#define IS_LOG_ALL()        TStreamError::checkFilter(HLOG_ALL)
169
 
174
 
-
 
175
#define START_TEMPORARY_TRACE() TStreamError::startTemporaryLogLevel(HLOG_TRACE)
-
 
176
#define START_TEMPORARY_DEBUG() TStreamError::startTemporaryLogLevel(HLOG_DEBUG)
-
 
177
#define END_TEMPORARY_LOG()     TStreamError::endTemporaryLogLevel()
-
 
178
 
170
#endif
179
#endif