Configuration support methods that use the Qt event loop to reload the configuration file when it is modified.
More...
#include <configuration.h>
Configuration support methods that use the Qt event loop to reload the configuration file when it is modified.
◆ configureFromFileAndWatch()
| static 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
-
| directories | Each directory is checked for each entry in filenames |
| filenames | Each file name is checked in each entry in directories |
- Returns
- the selected file path if Log4cxx was successfully configured
◆ reconfigureWhenModified() [1/2]
| static void log4cxx::qt::Configuration::reconfigureWhenModified |
( |
const LogString & |
fullPath | ) |
|
|
static |
Set up a QFileSystemWatcher that will reconfigure Log4cxx when fullPath is modified.
◆ reconfigureWhenModified() [2/2]
| static 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: