Apache Log4cxx  Version 1.6.1
Loading...
Searching...
No Matches
log4cxx::qt::Configuration Class Reference

Configuration support methods that use the Qt event loop to reload the configuration file when it is modified. More...

#include <configuration.h>

Static Public Member Functions

static std::tuple< spi::ConfigurationStatus, QString > configureFromFileAndWatch (const QVector< QString > &directories, const QVector< QString > &filenames)
 Select the file to configure Log4cxx and watch the file for changes.
static void reconfigureWhenModified (const QString &fullPath)
 Set up a QFileSystemWatcher that will reconfigure Log4cxx when fullPath is modified.
static void reconfigureWhenModified (const LogString &fullPath)
 Set up a QFileSystemWatcher that will reconfigure Log4cxx when fullPath is modified.

Detailed Description

Configuration support methods that use the Qt event loop to reload the configuration file when it is modified.

Member Function Documentation

◆ configureFromFileAndWatch()

std::tuple< spi::ConfigurationStatus, QString > log4cxx::qt::Configuration::configureFromFileAndWatch ( const QVector< QString > & directories,
const QVector< QString > & filenames )
static

Select the file to configure Log4cxx and watch the file for changes.

See also DefaultConfigurator::configureFromFile.

Parameters
directoriesEach directory is checked for each entry in filenames
filenamesEach file name is checked in each entry in directories
Returns
the selected file path if Log4cxx was successfully configured
Examples
com/foo/config-qt.cpp.

◆ reconfigureWhenModified() [1/2]

void log4cxx::qt::Configuration::reconfigureWhenModified ( const LogString & fullPath)
static

Set up a QFileSystemWatcher that will reconfigure Log4cxx when fullPath is modified.

◆ reconfigureWhenModified() [2/2]

void log4cxx::qt::Configuration::reconfigureWhenModified ( const QString & fullPath)
static

Set up a QFileSystemWatcher that will reconfigure Log4cxx when fullPath is modified.


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