summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/log.c b/log.c
index 497433a8b0..b82018f28b 100644
--- a/log.c
+++ b/log.c
@@ -313,6 +313,14 @@ void log_parse_environment(void) {
log_warning("Failed to parse log level %s. Ignoring.", e);
}
+LogTarget log_get_target(void) {
+ return log_target;
+}
+
+int log_get_max_level(void) {
+ return log_max_level;
+}
+
static const char *const log_target_table[] = {
[LOG_TARGET_CONSOLE] = "console",
[LOG_TARGET_SYSLOG] = "syslog",