about summary refs log tree commit diff stats
path: root/log.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-02-06 22:29:05 +0000
committerJames Booth <boothj5@gmail.com>2012-02-06 22:29:05 +0000
commitbbb0fbed4ffe472ef8672acad538cee597bf7e4f (patch)
tree674d6ff4eae450456b5a64756654ee313c459151 /log.c
parent14f4478bea0f031e58137f2f508eaa632c1925d5 (diff)
downloadprofani-tty-bbb0fbed4ffe472ef8672acad538cee597bf7e4f.tar.gz
Moved incoming display message
Diffstat (limited to 'log.c')
-rw-r--r--log.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/log.c b/log.c
index 4447ae3c..2eb49a1d 100644
--- a/log.c
+++ b/log.c
@@ -23,6 +23,11 @@ void xmpp_file_logger(void * const userdata, const xmpp_log_level_t level,
 
 void logmsg(const char * const area, const char * const msg)
 {
-    fprintf(logp, "%s DEBUG %s\n", area, msg);
+    fprintf(logp, "%s DEBUG: %s\n", area, msg);
 }
 
+void start_log(void)
+{
+    logp = fopen("profanity.log", "a");
+    logmsg(PROF, "Starting Profanity...");
+}