BoilerPlate-LightweightLogging Service OMG Formal/03-11-03 |
#include <BPLoggingStub.h>
Inheritance diagram for BPLoggingStub:
This stub enables developers to do unit testing without having to run the Lightweight Logging service. To switch from this stub to the service, change the type of PostORBInitCommand to the LWLoggingPostORBInitCommand and recompile.
Public Member Functions | |
BPLoggingStub () | |
BPLoggingStub (const char *filename) | |
virtual | ~BPLoggingStub () |
virtual void | logSecurityAlarm (const char *producerId, const char *msg) |
virtual void | logFailureAlarm (const char *producerId, const char *msg) |
virtual void | logDegradedAlarm (const char *producerId, const char *msg) |
virtual void | logExceptionError (const char *producerId, const char *msg) |
virtual void | logFlowControlError (const char *producerId, const char *msg) |
virtual void | logRangeError (const char *producerId, const char *msg) |
virtual void | logUsageError (const char *producerId, const char *msg) |
virtual void | logAdministrativeEvent (const char *producerId, const char *msg) |
virtual void | logStatisticReport (const char *producerId, const char *msg) |
virtual void | logDebugReport (const char *producerId, const char *msg, unsigned short debuglevel=10) |
virtual bool | execute (CORBA::ORB_ptr orb, ConfMap &config_map) |
Static Public Member Functions | |
BPLog & | log () |
Protected Member Functions | |
void | log (BPLog *log) |
|
Default ctor |
|
ctor Create a stub to write to a local file
|
|
dtor |
|
Implementation for PostORBCommandInit
|
|
Set the static Log pointer Used by the implementation to set the pointer to the Log
|
|
Obtain the interface to the log Producer Clients obtain a reference to the Logging mechanism by calling BPLog::log().
|
|
Log an Administrative event An administrative event includes events like startup and shutdown. It also includes requests that change the application's configuration
Implements BPLog. |
|
Log a debug message A general debugging hook. The debuglevel parm must be greater than 9. If the debug level is less than 10, the operation will add 10 to the inbound level
Implements BPLog. |
|
Log a Degraded Alarm A degraded alarm is raised when the system is in a state the inhibits it from performing at peak effeciency. For example, if the system can perform some of its functions but not all of its functions, it is in a degraded state.
Implements BPLog. |
|
Log an Exception Error Use this operation to log exceptions as they are generated. Exceptions should be logged at points where they are generated, rethrown, or translated into new exception types. No information should be lost
Implements BPLog. |
|
Log a Failure Alarm A Failure Alarm is raised when the application fails to create, find, or initialize an external service like a database connection, etc.
Implements BPLog. |
|
Log a Flow control error A flow control error occurs if a thread exhausts the control branches of a flow without falling into one of the branches.
Implements BPLog. |
|
Log a Range Error A Range Error occurs when a value is expected to be within a certain constraint but either exceeds or preceeds the range
Implements BPLog. |
|
Log a security alarm A security alarm is a notification that something has attempted to violate the application's security mechanism
Implements BPLog. |
|
Log a statistic report A statistic report includes messages about the applications performance and resources
Implements BPLog. |
|
Log a Usage Error Usage Errors include illegal argruments or arguments that would result in an illegal state
Implements BPLog. |
Copyright © BoilerPlate.org | Generated on Tue Nov 30 16:33:04 2004 for BoilerPlate CosLightweightLogging Service by 1.3.7 |