Remove setting log level for a module, implement

setting log level for a destination
This commit is contained in:
Nils O. Selåsdal
2013-06-01 23:45:14 +02:00
parent 10e717fc7d
commit 032e50e1cd
2 changed files with 16 additions and 27 deletions
+7 -8
View File
@@ -175,6 +175,13 @@ void uc_log_add_destination(struct uc_log_destination *dest);
*/
void uc_log_remove_destination(struct uc_log_destination *dest);
/** Change the log level of a destination..
*
* @param dest destination for which to set the log level
* @param level The new log level
*/
void uc_log_destination_set_loglevel(struct uc_log_destination *dest, enum UC_LOG_LEVEL level);
/** Remove and free a destination.
* This frees the memory allocated to the destination. For
* UC_LDEST_FILE the log file is closed.
@@ -187,14 +194,6 @@ void uc_log_remove_destination(struct uc_log_destination *dest);
*/
void uc_log_delete_destination(struct uc_log_destination *dest);
/** Change the log level of a module.
*
* @param module The module to change, matched against the id member of a struct uc_log_module
* @param level The log level for this module
*
* @return 0 on success, non-zero if the module was not found.
*/
int uc_log_module_set_loglevel(int module, enum UC_LOG_LEVEL level);
/** Closes and re-opens all the UC_LDEST_FILE log destinations.
* Intended for use when a log file is rotated externally.