Compila rnetserver e rnetclient.
[cascardo/rnetproxy.git] / log.c
diff --git a/log.c b/log.c
index 58128c7..87a7a28 100644 (file)
--- a/log.c
+++ b/log.c
@@ -1,3 +1,22 @@
+/*
+** Copyright (C) 2006 Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
+**  
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 2 of the License, or
+** (at your option) any later version.
+**  
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+** GNU General Public License for more details.
+**  
+** You should have received a copy of the GNU General Public License
+** along with this program; if not, write to the Free Software
+** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+**  
+*/
+
 #include <glib.h>
 #include <syslog.h>
 
@@ -25,9 +44,9 @@ static void log_func (const gchar* domain,
   syslog (map_level (level), "%s", message);
 }
 
-void im_log_init ()
+void rnet_log_init ()
 {
-  openlog ("improxy", LOG_NDELAY | LOG_NOWAIT, LOG_DAEMON);
+  openlog ("rnetproxy", LOG_NDELAY | LOG_NOWAIT, LOG_DAEMON);
   g_log_set_handler (NULL, G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL
                     | G_LOG_FLAG_RECURSION, log_func, NULL);
 }