AOSharedServiceLibrary
Public Member Functions | List of all members
LoggingComponentFactory Class Reference

The Logging Service Component Factory. More...

#include <factory_logging.h>

Public Member Functions

 LoggingComponentFactory ()
 Create a new Service Component Factory.
 
 ~LoggingComponentFactory ()
 Delete a Service Component Factory.
 
LoggingInterfaceget_logging_interface (std::string initFileName)
 Get a Logging Interface instance. More...
 
LoggingInterfaceget_logging_interface (std::string logFile, int logLevel)
 Get a Logging Interface instance. More...
 

Detailed Description

The Logging Service Component Factory.

The Service Component Factory tracks the Logging objects exposed by the framework and passes back instances of interfaces. This allows for the publicly exposed methods to be independent of the implementations.

Member Function Documentation

LoggingInterface* LoggingComponentFactory::get_logging_interface ( std::string  initFileName)
inline

Get a Logging Interface instance.

Parameters
initFileNameThe file name of the log4cpp configuration file to read
LoggingInterface* LoggingComponentFactory::get_logging_interface ( std::string  logFile,
int  logLevel 
)
inline

Get a Logging Interface instance.

Parameters
logFileThe file to write logs to
logLevelThe level at which to write logs (options are AOSSL_LOG_INFO, AOSSL_LOG_ERROR, AOSSL_LOG_DEBUG)

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