summaryrefslogtreecommitdiffstats
path: root/hcid/logging.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-03-09 19:54:52 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-03-09 19:54:52 +0000
commitddeb6ab85924294cbeb6c64321cadef508c347aa (patch)
tree01c77f323dbf0d4f4ebaaa56bf0f3c72e93f4ff7 /hcid/logging.c
parentc11d692fed46ea2e0dac68abde5028b85a6caf0e (diff)
More generalization of the logging procedures
Diffstat (limited to 'hcid/logging.c')
-rw-r--r--hcid/logging.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/hcid/logging.c b/hcid/logging.c
index e478a60e..f25dc10a 100644
--- a/hcid/logging.c
+++ b/hcid/logging.c
@@ -79,3 +79,15 @@ void disable_debug()
{
debug_enabled = 0;
}
+
+void start_logging(const char *ident, const char *message)
+{
+ openlog(ident, LOG_PID | LOG_NDELAY | LOG_PERROR, LOG_DAEMON);
+
+ info(message);
+}
+
+void stop_logging(void)
+{
+ closelog();
+}