aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-19 08:35:20 +0100
committerMax Kellermann <max@duempel.org>2009-02-19 08:35:20 +0100
commit0a0736fc4e010db5d17c8aa9a7a71567cdae26ea (patch)
tree2fc175bdacb0d1e56761b8c08498eed22a638da3 /src/log.h
parent84437acffb5996a9ea99b1d2ab96c68e9751b708 (diff)
downloadmpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.tar.gz
mpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.tar.xz
mpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.zip
log: added log_early_init() for early debug messages
Diffstat (limited to '')
-rw-r--r--src/log.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/log.h b/src/log.h
index 5903b18ab..df51ef1f3 100644
--- a/src/log.h
+++ b/src/log.h
@@ -25,6 +25,17 @@
G_GNUC_PRINTF(1, 2) void DEBUG(const char *fmt, ...);
G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN void FATAL(const char *fmt, ...);
+/**
+ * Configure a logging destination for daemon startup, before the
+ * configuration file is read. This allows the daemon to use the
+ * logging library (and the command line verbose level) before it's
+ * daemonized.
+ *
+ * @param verbose true when the program is started with --verbose
+ */
+void
+log_early_init(bool verbose);
+
void log_init(bool verbose, bool use_stdout);
void setup_log_output(bool use_stdout);