Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BPLog.h

Go to the documentation of this file.
00001 00030 #ifndef _BPLOG_H 00031 #define _BPLOG_H 00032 00052 class BPLog 00053 { 00054 00055 public: 00056 00065 virtual 00066 void logSecurityAlarm(const char* producerId, const char* msg)= 0; 00067 00076 virtual 00077 void logFailureAlarm(const char* producerId, const char* msg) = 0; 00078 00089 virtual 00090 void logDegradedAlarm(const char* producerId, const char* msg) = 0; 00091 00101 virtual 00102 void logExceptionError(const char* producerId, const char* msg) = 0; 00103 00112 virtual 00113 void logFlowControlError(const char* producerId, const char* msg) = 0; 00114 00123 virtual 00124 void logRangeError(const char* producerId, const char* msg) = 0; 00125 00134 virtual 00135 void logUsageError(const char* producerId, const char* msg) = 0; 00136 00145 virtual 00146 void logAdministrativeEvent(const char* producerId, const char* msg) = 0; 00147 00156 virtual 00157 void logStatisticReport(const char* producerId, const char* msg) = 0; 00158 00171 virtual 00172 void logDebugReport(const char* producerId, 00173 const char* msg, 00174 unsigned short debuglevel=10)= 0; 00175 00185 static BPLog& log() 00186 { 00187 return(*_log); 00188 } 00189 00190 protected: 00191 00198 void log(BPLog* log) 00199 { 00200 _log = log; 00201 } 00202 00203 private: 00204 00206 static BPLog* _log; 00207 00208 00209 }; 00210 00211 #endif