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

LWLoggingPostORBInitCommand.h

Go to the documentation of this file.
00001 00029 #ifndef LW_LOGGING_POSTORBINIT_H 00030 #define LW_LOGGING_POSTORBINIT_H 00031 00032 #include "config.h" 00033 #include "InitCommand.h" 00034 #include "BPLog.h" 00035 00036 #ifdef HAVE_ORBACUS 00037 #include "CosLW_Log.h" 00038 #endif 00039 00040 #ifdef HAVE_MICO 00041 #include "CosLW_Log.h" 00042 #endif 00043 00044 #ifdef HAVE_TAO 00045 #include "CosLW_LogC.h" 00046 #endif 00047 00048 #include <string> 00049 00103 class LWLoggingPostORBInitCommand: 00104 public virtual PostORBInitCommand, 00105 public virtual BPLog 00106 { 00107 public: 00117 LWLoggingPostORBInitCommand(const char* producer_name); 00118 00126 LWLoggingPostORBInitCommand(); 00127 00131 virtual ~LWLoggingPostORBInitCommand(); 00132 00156 virtual bool execute(CORBA::ORB_ptr orb, ConfMap& config_map); 00157 00166 virtual 00167 void logSecurityAlarm(const char* producerId, const char* msg); 00168 00177 virtual 00178 void logFailureAlarm(const char* producerId, const char* msg); 00179 00190 virtual 00191 void logDegradedAlarm(const char* producerId, const char* msg); 00192 00202 virtual 00203 void logExceptionError(const char* producerId, const char* msg); 00204 00213 virtual 00214 void logFlowControlError(const char* producerId, const char* msg); 00215 00224 virtual 00225 void logRangeError(const char* producerId, const char* msg); 00226 00235 virtual 00236 void logUsageError(const char* producerId, const char* msg); 00237 00246 virtual 00247 void logAdministrativeEvent(const char* producerId, const char* msg); 00248 00257 virtual 00258 void logStatisticReport(const char* producerId, const char* msg); 00259 00272 virtual 00273 void logDebugReport(const char* producerId, 00274 const char* msg, 00275 unsigned short debuglevel=10); 00276 00277 private: 00278 std::string _producer_id; 00279 CosLwLog::LogProducer_var _producer; 00280 00281 CosLwLog::ProducerLogRecord* _buildLogRecord( 00282 const CORBA::String_var producer_name, 00283 const CORBA::String_var logData, 00284 const CosLwLog::LogLevel 00285 ); 00286 00287 }; 00288 00289 #endif