diff options
-rw-r--r-- | include/osmocore/logging.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocore/logging.h b/include/osmocore/logging.h index 70e8f149..7f33155a 100644 --- a/include/osmocore/logging.h +++ b/include/osmocore/logging.h @@ -84,6 +84,7 @@ struct log_target { union { struct { FILE *out; + const char *fname; } tgt_file; struct { @@ -123,7 +124,11 @@ void log_set_category_filter(struct log_target *target, int category, /* management of the targets */ struct log_target *log_target_create(void); +void log_target_destroy(struct log_target *target); struct log_target *log_target_create_stderr(void); +struct log_target *log_target_create_file(const char *fname); +int log_target_file_reopen(struct log_target *tgt); + void log_add_target(struct log_target *target); void log_del_target(struct log_target *target); |