| Server IP : 216.92.14.13 / Your IP : 216.73.216.171 Web Server : Apache System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : rmlac2fmr ( 1040637) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/include/log4cpp/ |
Upload File : |
/*
* SimpleConfigurator.hh
*
* Copyright 2001, Glen Scott. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4CPP_PROPERTYCONFIGURATOR_HH
#define _LOG4CPP_PROPERTYCONFIGURATOR_HH
#include <log4cpp/Portability.hh>
#include <log4cpp/Export.hh>
#include <string>
#include <log4cpp/Configurator.hh> // configure exceptions
namespace log4cpp {
/**
Property configurator will read a config file using the same (or similar)
format to the config file used by log4j. This file is in a standard Java
"properties" file format.
<P>Example:<BR>
<PRE>
# a simple test config
log4j.rootCategory=DEBUG, rootAppender
log4j.category.sub1=A1
log4j.category.sub2=INFO
log4j.category.sub1.sub2=ERROR, A2
log4j.appender.rootAppender=org.apache.log4j.ConsoleAppender
log4j.appender.rootAppender.layout=org.apache.log4j.BasicLayout
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.fileName=A1.log
log4j.appender.A1.layout=org.apache.log4j.BasicLayout
log4j.appender.A2=org.apache.log4j.ConsoleAppender
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=The message %%m at time %%d%%n
</PRE>
@since 0.3.2
**/
class LOG4CPP_EXPORT PropertyConfigurator {
public:
static void configure(const std::string& initFileName) throw (ConfigureFailure);
};
}
#endif // _LOG4CPP_PROPERTYCONFIGURATOR_HH