#include <loggingLogSvcHandler.h>
Classes | |
struct | DeprecatedLogInfo |
Public Member Functions | |
LogSvcHandler (const std::string &soName) | |
virtual void | log (const LogRecord &) |
virtual std::string | getName () const |
virtual void | setLevels (Priority remotePriority, Priority localPriority, int type) |
Static Public Member Functions | |
static DeprecatedLogInfo | unformatted2formatted (ACE_Log_Priority messagePriority, const char *fmt,...) |
Static Public Attributes | |
static const int | MAX_MESSAGE_SIZE = 1000 |
Private Attributes | |
std::string | sourceObjectName_m |
Logging::LogSvcHandler::LogSvcHandler | ( | const std::string & | soName | ) |
Standard constructor.
soName | Name of the source object to be sent to the LoggingProxy. Typically this is the name of the Logger which is using this Handler-derived object. |
virtual std::string Logging::LogSvcHandler::getName | ( | ) | const [virtual] |
Overridden from baseclass.
Implements Logging::BaseLog.
virtual void Logging::LogSvcHandler::log | ( | const LogRecord & | ) | [virtual] |
Overridden from baseclass.
Implements Logging::BaseLog.
virtual void Logging::LogSvcHandler::setLevels | ( | Priority | remotePriority, | |
Priority | localPriority, | |||
int | type | |||
) | [virtual] |
Overridden from baseclass.
Reimplemented from Logging::Handler.
static DeprecatedLogInfo Logging::LogSvcHandler::unformatted2formatted | ( | ACE_Log_Priority | messagePriority, | |
const char * | fmt, | |||
... | ||||
) | [static] |
Method used to convert unformatted printf-style messages into C++ strings. It must also take take in an ACE Log Priority parameter because of the way the ACS logging macros were setup in ACS 4.0.
messagePriority | priority of the logging message | |
fmt | format of the message (similary to printf's first parameter) | |
... | Variable length parameters to be placed into fmt. |
const int Logging::LogSvcHandler::MAX_MESSAGE_SIZE = 1000 [static] |
Maximum size of a formatted log message passed to unformatted2formatted.
std::string Logging::LogSvcHandler::sourceObjectName_m [private] |
Name of the source object.