X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=blobdiff_plain;f=log.c;h=87a7a287c8ae6d99c3652e69b76d383e4e74c59d;hp=58128c7e1303b6610a9a0be964a71516cba9db73;hb=HEAD;hpb=8feb6ebdc5e07e47f60c3ebee79df65f8f0c2c85 diff --git a/log.c b/log.c index 58128c7..87a7a28 100644 --- a/log.c +++ b/log.c @@ -1,3 +1,22 @@ +/* +** Copyright (C) 2006 Thadeu Lima de Souza Cascardo +** +** 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 #include @@ -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); }