RSC  0.19.0
rsc::logging::LoggingSystem Class Referenceabstract

Represents a logging adapter available to the rsc logging system through the configuration. More...

#include <LoggingSystem.h>

Inheritance diagram for rsc::logging::LoggingSystem:
Inheritance graph
Collaboration diagram for rsc::logging::LoggingSystem:
Collaboration graph

Public Member Functions

virtual ~LoggingSystem ()
 
virtual const std::string getName () const =0
 Return the name of the logging system. More...
 
virtual LoggerPtr createLogger (const std::string &name)=0
 Factory method to create a new system-specific logger. More...
 

Detailed Description

Represents a logging adapter available to the rsc logging system through the configuration.

Reentrancy is required.

Author
jwienke
jmoringe

Definition at line 48 of file LoggingSystem.h.

Constructor & Destructor Documentation

rsc::logging::LoggingSystem::~LoggingSystem ( )
virtual

Definition at line 33 of file LoggingSystem.cpp.

Member Function Documentation

virtual LoggerPtr rsc::logging::LoggingSystem::createLogger ( const std::string &  name)
pure virtual

Factory method to create a new system-specific logger.

Given parameters to this method are assumed to be set on the returned logger. The caller is responsible to not request a logger with the same name multiple times. Otherwise it is legal to return a second instance in this method.

Parameters
namename of the new logger
Returns
new logger instance

Implemented in rsc::logging::ConsoleLoggingSystem.

virtual const std::string rsc::logging::LoggingSystem::getName ( ) const
pure virtual

Return the name of the logging system.

Returns
The name of the logging system.

Implemented in rsc::logging::ConsoleLoggingSystem.


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