log4cpp
1.1.6
Toggle main menu visibility
Loading...
Searching...
No Matches
PropertyConfiguratorImpl.hh
Go to the documentation of this file.
1
/*
2
* PropertyConiguratorImpl.hh
3
*
4
* Copyright 2002, Log4cpp Project. All rights reserved.
5
*
6
* See the COPYING file for the terms of usage and distribution.
7
*/
8
9
#ifndef _LOG4CPP_PROPERTYCONFIGURATORIMPL_HH
10
#define _LOG4CPP_PROPERTYCONFIGURATORIMPL_HH
11
12
#include "
PortabilityImpl.hh
"
13
#include <iostream>
14
#include <
log4cpp/Appender.hh
>
15
#include <
log4cpp/Category.hh
>
16
#include <
log4cpp/Configurator.hh
>
17
#include <map>
18
#include <string>
19
#include <vector>
20
21
#include "
Properties.hh
"
22
23
namespace
log4cpp
{
24
25
class
PropertyConfiguratorImpl
{
26
public
:
27
typedef
std::map<std::string, Appender*>
AppenderMap
;
28
29
PropertyConfiguratorImpl
();
30
virtual
~PropertyConfiguratorImpl
();
37
virtual
void
doConfigure
(
const
std::string& initFileName);
44
virtual
void
doConfigure
(std::istream& in);
45
46
protected
:
56
void
configureCategory
(
const
std::string& categoryname);
57
63
void
getCategories
(std::vector<std::string>& categories)
const
;
64
65
void
instantiateAllAppenders
();
66
80
Appender
*
instantiateAppender
(
const
std::string& name);
81
88
void
setLayout
(
Appender
* appender,
const
std::string& name);
89
90
Properties
_properties
;
91
AppenderMap
_allAppenders
;
92
};
93
}
// namespace log4cpp
94
95
#endif
// _LOG4CPP_PROPERTIES_HH
Appender.hh
Category.hh
Configurator.hh
PortabilityImpl.hh
Properties.hh
log4cpp::Appender
Implement this interface for your own strategies for printing log statements.
Definition
Appender.hh:34
log4cpp::Properties
Definition
Properties.hh:19
log4cpp::PropertyConfiguratorImpl::setLayout
void setLayout(Appender *appender, const std::string &name)
Method for instantiating and configuring the layouts associated with each appender.
Definition
PropertyConfiguratorImpl.cpp:293
log4cpp::PropertyConfiguratorImpl::AppenderMap
std::map< std::string, Appender * > AppenderMap
Definition
PropertyConfiguratorImpl.hh:27
log4cpp::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:337
log4cpp::PropertyConfiguratorImpl::doConfigure
virtual void doConfigure(const std::string &initFileName)
Definition
PropertyConfiguratorImpl.cpp:67
log4cpp::PropertyConfiguratorImpl::_properties
Properties _properties
Definition
PropertyConfiguratorImpl.hh:90
log4cpp::PropertyConfiguratorImpl::PropertyConfiguratorImpl
PropertyConfiguratorImpl()
Definition
PropertyConfiguratorImpl.cpp:63
log4cpp::PropertyConfiguratorImpl::instantiateAppender
Appender * instantiateAppender(const std::string &name)
Intantiate and configure the appender referred to by the given name.
Definition
PropertyConfiguratorImpl.cpp:190
log4cpp::PropertyConfiguratorImpl::instantiateAllAppenders
void instantiateAllAppenders()
Definition
PropertyConfiguratorImpl.cpp:92
log4cpp::PropertyConfiguratorImpl::_allAppenders
AppenderMap _allAppenders
Definition
PropertyConfiguratorImpl.hh:91
log4cpp::PropertyConfiguratorImpl::configureCategory
void configureCategory(const std::string &categoryname)
configure the given category.
Definition
PropertyConfiguratorImpl.cpp:132
log4cpp::PropertyConfiguratorImpl::~PropertyConfiguratorImpl
virtual ~PropertyConfiguratorImpl()
Definition
PropertyConfiguratorImpl.cpp:65
log4cpp
The top level namespace for all 'Log for C++' types and classes.
Definition
AbortAppender.hh:16
src
PropertyConfiguratorImpl.hh
Generated by
1.17.0