about summary refs log tree commit diff stats
path: root/log.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-02-05 15:22:02 +0000
committerJames Booth <boothj5@gmail.com>2012-02-05 15:22:02 +0000
commit39627be1f5efd07febdc6ee545f2e8c5b2603f8d (patch)
treea84ab40e0b8fa87bb5dcc7633f9b9a843eecbf2c /log.c
parent5eaf687d98de9683ea4e479845868c56c14f015d (diff)
downloadprofani-tty-39627be1f5efd07febdc6ee545f2e8c5b2603f8d.tar.gz
Tidied up logging functions
Diffstat (limited to 'log.c')
-rw-r--r--log.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/log.c b/log.c
index 4022a20f..4447ae3c 100644
--- a/log.c
+++ b/log.c
@@ -18,6 +18,11 @@ xmpp_log_t *xmpp_get_file_logger()
 void xmpp_file_logger(void * const userdata, const xmpp_log_level_t level,
     const char * const area, const char * const msg)
 {
+    logmsg(area, msg);
+}
+
+void logmsg(const char * const area, const char * const msg)
+{
     fprintf(logp, "%s DEBUG %s\n", area, msg);
 }