Loading...
Searching...
No Matches
PropertyConfiguratorImpl.hh
Go to the documentation of this file.
/*
* PropertyConiguratorImpl.hh
*
* Copyright 2002, Log4cpp Project. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4SHIB_PROPERTYCONFIGURATORIMPL_HH
#define _LOG4SHIB_PROPERTYCONFIGURATORIMPL_HH
#include "PortabilityImpl.hh"
#include <log4shib/Configurator.hh>
#include <log4shib/Appender.hh>
#include <log4shib/Category.hh>
#include <string>
#include <iostream>
#include <map>
#include <vector>
#include "Properties.hh"
namespace log4shib {
class PropertyConfiguratorImpl {
public:
typedef std::map<std::string, Appender*> AppenderMap;
PropertyConfiguratorImpl();
virtual ~PropertyConfiguratorImpl();
virtual void doConfigure(const std::string& initFileName);
virtual void doConfigure(std::istream& in);
protected:
void configureCategory(const std::string& categoryname);
void getCategories(std::vector<std::string>& categories) const;
void instantiateAllAppenders();
Appender* instantiateAppender(const std::string& name);
void setLayout(Appender* appender, const std::string& name);
Properties _properties;
AppenderMap _allAppenders;
};
}
#endif // _LOG4SHIB_PROPERTIES_HH
Appender.hh
Category.hh
Configurator.hh
PortabilityImpl.hh
Properties.hh
log4shib::Appender
Implement this interface for your own strategies for printing log statements.
Definition Appender.hh:33
log4shib::Properties
Definition Properties.hh:19
log4shib::PropertyConfiguratorImpl::instantiateAllAppenders
void instantiateAllAppenders()
Definition PropertyConfiguratorImpl.cpp:92
log4shib::PropertyConfiguratorImpl::~PropertyConfiguratorImpl
virtual ~PropertyConfiguratorImpl()
Definition PropertyConfiguratorImpl.cpp:62
log4shib::PropertyConfiguratorImpl::_allAppenders
AppenderMap _allAppenders
Definition PropertyConfiguratorImpl.hh:78
log4shib::PropertyConfiguratorImpl::getCategories
void getCategories(std::vector< std::string > &categories) const
Get a list of categories for which we should do the configuration.
Definition PropertyConfiguratorImpl.cpp:340
log4shib::PropertyConfiguratorImpl::PropertyConfiguratorImpl
PropertyConfiguratorImpl()
Definition PropertyConfiguratorImpl.cpp:59
log4shib::PropertyConfiguratorImpl::AppenderMap
std::map< std::string, Appender * > AppenderMap
Definition PropertyConfiguratorImpl.hh:27
log4shib::PropertyConfiguratorImpl::doConfigure
virtual void doConfigure(const std::string &initFileName)
Definition PropertyConfiguratorImpl.cpp:65
log4shib::PropertyConfiguratorImpl::instantiateAppender
Appender * instantiateAppender(const std::string &name)
Intantiate and configure the appender referred to by the given name.
Definition PropertyConfiguratorImpl.cpp:199
log4shib::PropertyConfiguratorImpl::configureCategory
void configureCategory(const std::string &categoryname)
configure the given category.
Definition PropertyConfiguratorImpl.cpp:134
log4shib::PropertyConfiguratorImpl::setLayout
void setLayout(Appender *appender, const std::string &name)
Method for instantiating and configuring the layouts associated with each appender.
Definition PropertyConfiguratorImpl.cpp:290
log4shib::PropertyConfiguratorImpl::_properties
Properties _properties
Definition PropertyConfiguratorImpl.hh:77
log4shib
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16