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
@@ -49,12 +49,17 @@ struct custom_logger_t {
|
||||
* @param group debug group to set
|
||||
* @param level max level to log (0..4)
|
||||
*/
|
||||
void (*set_level) (custom_logger_t *this, debug_t group, level_t level);
|
||||
void (*set_level)(custom_logger_t *this, debug_t group, level_t level);
|
||||
|
||||
/**
|
||||
* Reload custom logger configuration.
|
||||
*/
|
||||
void (*reload)(custom_logger_t *this);
|
||||
|
||||
/**
|
||||
* Destroy the custom_logger_t object.
|
||||
*/
|
||||
void (*destroy) (custom_logger_t *this);
|
||||
void (*destroy)(custom_logger_t *this);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user