custom-logger: Add optional reload method
The reload of the configuration of the loggers so far only included the log levels. In order to support the reload of all other options, a reload function may be implemented. Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
committed by
Tobias Brunner
parent
c163a53a3a
commit
32c190634c
@@ -549,6 +549,10 @@ static void load_custom_logger(private_daemon_t *this,
|
||||
lib->settings->get_int(lib->settings, "%s.customlog.%s.%N", def,
|
||||
lib->ns, entry->name, debug_lower_names, group));
|
||||
}
|
||||
if (custom_logger->reload)
|
||||
{
|
||||
custom_logger->reload(custom_logger);
|
||||
}
|
||||
charon->bus->add_logger(charon->bus, &custom_logger->logger);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user