summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/include/osmocore/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/libosmocore/include/osmocore/logging.h')
-rw-r--r--src/shared/libosmocore/include/osmocore/logging.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/libosmocore/include/osmocore/logging.h b/src/shared/libosmocore/include/osmocore/logging.h
index 7bf24403..7f33155a 100644
--- a/src/shared/libosmocore/include/osmocore/logging.h
+++ b/src/shared/libosmocore/include/osmocore/logging.h
@@ -84,7 +84,8 @@ struct log_target {
union {
struct {
FILE *out;
- } tgt_stdout;
+ const char *fname;
+ } tgt_file;
struct {
int priority;
@@ -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);