aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/utils/logger.h')
-rw-r--r--Source/charon/utils/logger.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/charon/utils/logger.h b/Source/charon/utils/logger.h
index bdf5e180e..637915e8b 100644
--- a/Source/charon/utils/logger.h
+++ b/Source/charon/utils/logger.h
@@ -157,6 +157,16 @@ struct logger_t {
void (*disable_level) (logger_t *this, log_level_t log_level);
/**
+ * @brief Set the output of the logger.
+ *
+ * Use NULL for syslog.
+ *
+ * @param this logger_t object
+ * @param output file, where log output should be written
+ */
+ void (*set_output) (logger_t *this, FILE *output);
+
+ /**
* @brief Get the currently used loglevel.
*
* @param this logger_t object