log4shib 2.0.1
Loading...
Searching...
No Matches
log4shib::SimpleConfigurator Class Reference

This class implements a simple Configurator for log4shib. More...

#include <SimpleConfigurator.hh>

Static Public Member Functions

static void configure (const std::string &initFileName)
 Configure log4shib with the configuration in the given file.
 
static void configure (std::istream &initFile)
 Configure log4shib with the configuration in the given file.
 

Detailed Description

This class implements a simple Configurator for log4shib.

It is a temporary hack with an undocumented configuration format.

Deprecated
As of version 0.3.2 log4shib includes a log4j format compatible PropertyConfigurator, removing the need for SimpleConfigurator. This class will be removed in 0.4.0.

Member Function Documentation

◆ configure() [1/2]

void log4shib::SimpleConfigurator::configure ( const std::string & initFileName)
static

Configure log4shib with the configuration in the given file.

NB. The configuration file format is undocumented and may change without notice.

Since
0.2.6
Parameters
initFileNamename of the configuration file
Exceptions
ConfigureFailureif the method encountered a read or syntax error.

◆ configure() [2/2]

void log4shib::SimpleConfigurator::configure ( std::istream & initFile)
static

Configure log4shib with the configuration in the given file.

NB. The configuration file format is undocumented and may change without notice.

Since
0.3.1
Parameters
initFilean input stream to the configuration file
Exceptions
ConfigureFailureif the method encountered a read or syntax error.

The documentation for this class was generated from the following files: