Logging::LogSvcHandler

NAME
SYNOPSIS
Constructor & Destructor Documentation
Member Function Documentation
Member Data Documentation
Author

NAME

Logging::LogSvcHandler −

SYNOPSIS

#include <loggingLogSvcHandler.h>

Inherits Logging::Handler.

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

Constructor & Destructor Documentation

Logging::LogSvcHandler::LogSvcHandler (const std::string & soName) Standard constructor.

Parameters:

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.

Member Function Documentation

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.

Parameters:

messagePriority priority of the logging message
fmt
format of the message (similary to printf’s first parameter)

Returns:

a structure containing the message priority and the formatted message.

Member Data Documentation

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.

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.