| Server IP : 216.92.14.13 / Your IP : 216.73.217.126 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_SIMPLECONFIGURATOR_HH
#define _LOG4CPP_SIMPLECONFIGURATOR_HH
#include <log4cpp/Portability.hh>
#include <iostream>
#include <string>
#include <log4cpp/Configurator.hh>
namespace log4cpp {
/**
* This class implements a simple Configurator for log4cpp.
* It is a temporary hack with an undocumented configuration format.
* @deprecated As of version 0.3.2 log4cpp includes a log4j format
* compatible PropertyConfigurator, removing the need for
* SimpleConfigurator. This class will be removed in 0.4.0.
**/
class LOG4CPP_EXPORT SimpleConfigurator {
public:
/**
* Configure log4cpp with the configuration in the given file.
* NB. The configuration file format is undocumented and may change
* without notice.
* @since 0.2.6
* @param initFileName name of the configuration file
* @exception ConfigureFailure if the method encountered a read or
* syntax error.
**/
static void configure(const std::string& initFileName) throw (ConfigureFailure);
/**
* Configure log4cpp with the configuration in the given file.
* NB. The configuration file format is undocumented and may change
* without notice.
* @since 0.3.1
* @param initFile an input stream to the configuration file
* @exception ConfigureFailure if the method encountered a read or
* syntax error.
**/
static void configure(std::istream& initFile) throw (ConfigureFailure); };
}
#endif