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

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.

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

DeprecatedLogInfo unformatted2formatted (ACE_Log_Priority messagePriority, const char *fmt,...)

Static Public Attributes

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.

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.

std::string Logging::LogSvcHandler::sourceObjectName_m [private]
 

Name of the source object.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:37:28 2009 for ACS C++ API by doxygen 1.3.8