diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 19:54:52 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 19:54:52 +0000 |
commit | ddeb6ab85924294cbeb6c64321cadef508c347aa (patch) | |
tree | 01c77f323dbf0d4f4ebaaa56bf0f3c72e93f4ff7 /hcid/logging.c | |
parent | c11d692fed46ea2e0dac68abde5028b85a6caf0e (diff) |
More generalization of the logging procedures
Diffstat (limited to 'hcid/logging.c')
-rw-r--r-- | hcid/logging.c | 12 |
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(); +} |