diff options
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/core/logging.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index 922cbf6e..1e809d0a 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -298,6 +298,9 @@ struct log_target { void (*raw_output)(struct log_target *target, int subsys, unsigned int level, const char *file, int line, int cont, const char *format, va_list ap); + + /* Should the log level be printed? */ + bool print_level; }; /* use the above macros */ @@ -320,6 +323,7 @@ void log_set_print_extended_timestamp(struct log_target *target, int); void log_set_print_timestamp(struct log_target *target, int); void log_set_print_filename(struct log_target *target, int); void log_set_print_category(struct log_target *target, int); +void log_set_print_level(struct log_target *target, int); void log_set_log_level(struct log_target *target, int log_level); void log_parse_category_mask(struct log_target *target, const char* mask); const char* log_category_name(int subsys); |