Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes

Logging::LogSvcHandler Class Reference

#include <loggingLogSvcHandler.h>

Inheritance diagram for Logging::LogSvcHandler:
Inheritance graph
[legend]
Collaboration diagram for Logging::LogSvcHandler:
Collaboration graph
[legend]

List of all members.

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)
... Variable length parameters to be placed into fmt.
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.

Name of the source object.


The documentation for this class was generated from the following file: