log4shib 2.0.1
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 _LOG4SHIB_PROPERTYCONFIGURATORIMPL_HH
10#define _LOG4SHIB_PROPERTYCONFIGURATORIMPL_HH
11
12#include "PortabilityImpl.hh"
14#include <log4shib/Appender.hh>
15#include <log4shib/Category.hh>
16#include <string>
17#include <iostream>
18#include <map>
19#include <vector>
20
21#include "Properties.hh"
22
23namespace log4shib {
24
26 public:
27 typedef std::map<std::string, Appender*> AppenderMap;
28
31 virtual void doConfigure(const std::string& initFileName);
32 virtual void doConfigure(std::istream& in);
33
34 protected:
43 void configureCategory(const std::string& categoryname);
44
50 void getCategories(std::vector<std::string>& categories) const;
51
53
67 Appender* instantiateAppender(const std::string& name);
68
75 void setLayout(Appender* appender, const std::string& name);
76
79 };
80}
81
82#endif // _LOG4SHIB_PROPERTIES_HH
83
Implement this interface for your own strategies for printing log statements.
Definition Appender.hh:33
Definition Properties.hh:19
void instantiateAllAppenders()
Definition PropertyConfiguratorImpl.cpp:92
virtual ~PropertyConfiguratorImpl()
Definition PropertyConfiguratorImpl.cpp:62
AppenderMap _allAppenders
Definition PropertyConfiguratorImpl.hh:78
void getCategories(std::vector< std::string > &categories) const
Get a list of categories for which we should do the configuration.
Definition PropertyConfiguratorImpl.cpp:340
PropertyConfiguratorImpl()
Definition PropertyConfiguratorImpl.cpp:59
std::map< std::string, Appender * > AppenderMap
Definition PropertyConfiguratorImpl.hh:27
virtual void doConfigure(const std::string &initFileName)
Definition PropertyConfiguratorImpl.cpp:65
Appender * instantiateAppender(const std::string &name)
Intantiate and configure the appender referred to by the given name.
Definition PropertyConfiguratorImpl.cpp:199
void configureCategory(const std::string &categoryname)
configure the given category.
Definition PropertyConfiguratorImpl.cpp:134
void setLayout(Appender *appender, const std::string &name)
Method for instantiating and configuring the layouts associated with each appender.
Definition PropertyConfiguratorImpl.cpp:290
Properties _properties
Definition PropertyConfiguratorImpl.hh:77
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16