aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/logging.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-03-18 19:01:40 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-18 19:05:46 +0100
commit4de854dcf00124b82c12421c3ea1f06a9edeff76 (patch)
treee892c186cdbf9d91803fdf9bba7de46151dffc07 /include/osmocom/core/logging.h
parente128f4663104ed64e33e362cff2566f36d65e658 (diff)
logging: add new log_targets_reopen() function
This function will re-open all existing log files in the application, praticularly useful for SIGHUP handlers in case of logrotate
Diffstat (limited to 'include/osmocom/core/logging.h')
-rw-r--r--include/osmocom/core/logging.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index fa3365a..1d57e22 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -203,6 +203,7 @@ struct log_target *log_target_create_file(const char *fname);
struct log_target *log_target_create_syslog(const char *ident, int option,
int facility);
int log_target_file_reopen(struct log_target *tgt);
+int log_targets_reopen(void);
void log_add_target(struct log_target *target);
void log_del_target(struct log_target *target);