Configuration support methods that use the Qt event loop to reload the configuration file when it is modified.
More...
#include <configuration.h>
|
| 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.
|
Configuration support methods that use the Qt event loop to reload the configuration file when it is modified.
◆ 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
-
| 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
- 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: