int log_level->enum UC_LOG_LEVEL
This commit is contained in:
@@ -108,7 +108,7 @@ struct UCLogModule {
|
||||
* log statements with a level >= the log_level
|
||||
* are actually logged, but the log_level of a destination
|
||||
* can restrict the logging further*/
|
||||
int log_level;
|
||||
enum UC_LOG_LEVEL log_level;
|
||||
};
|
||||
|
||||
/* A collection of struct UCLogModule */
|
||||
@@ -168,7 +168,7 @@ const char *uc_ll_2_str(enum UC_LOG_LEVEL l);
|
||||
* @return An opaque uc_log_destination that can be added as a destination to
|
||||
* the ucore logging system
|
||||
*/
|
||||
struct UCLogDestination *uc_log_new_stderr(int log_level, int log_location);
|
||||
struct UCLogDestination *uc_log_new_stderr(enum UC_LOG_LEVEL log_level, int log_location);
|
||||
|
||||
/* creates a new uc_log_destination for logging to syslog
|
||||
*
|
||||
@@ -181,7 +181,7 @@ struct UCLogDestination *uc_log_new_stderr(int log_level, int log_location);
|
||||
* @return An opaque uc_log_destination that can be added as a destination to
|
||||
* the ucore logging system
|
||||
*/
|
||||
struct UCLogDestination *uc_log_new_syslog(const char *ident, int facility, int log_level, int log_location);
|
||||
struct UCLogDestination *uc_log_new_syslog(const char *ident, int facility, enum UC_LOG_LEVEL log_level, int log_location);
|
||||
|
||||
/* creates a new uc_log_destination for printing on stderr.
|
||||
*
|
||||
@@ -192,7 +192,7 @@ struct UCLogDestination *uc_log_new_syslog(const char *ident, int facility, int
|
||||
* @param return An opaque uc_log_destination that can be added as a destination to
|
||||
* the ucore logging system
|
||||
*/
|
||||
struct UCLogDestination *uc_log_new_file(const char *filename, int log_level, int log_location);
|
||||
struct UCLogDestination *uc_log_new_file(const char *filename, enum UC_LOG_LEVEL log_level, int log_location);
|
||||
|
||||
/** Add a uc_log_destination to the logging system.
|
||||
*
|
||||
@@ -297,7 +297,7 @@ int uc_log_reopen_files(void);
|
||||
*/
|
||||
void uc_log_init(struct UCLogModules *user_modules);
|
||||
|
||||
void uc_logf(int log_level, int module, int raw,
|
||||
void uc_logf(enum UC_LOG_LEVEL log_level, int module, int raw,
|
||||
const char *location, const char *fmt, ...)
|
||||
__attribute__((format(printf, 5, 6)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user