RSC  0.16.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 std::string getRegistryKey () const =0
 Returns a unique key describing 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

Definition at line 44 of file LoggingSystem.h.

Constructor & Destructor Documentation

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

Definition at line 32 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 std::string rsc::logging::LoggingSystem::getRegistryKey ( ) const
pure virtual

Returns a unique key describing the name of the logging system.

Returns
name of the logging system

Implemented in rsc::logging::ConsoleLoggingSystem.


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