OpenVAS Libraries  4.0+rc3.SVN
misc/openvas_logging.h
00001 /* openvas-libraries/misc
00002  * $Id$
00003  * Description: Implementation of logging methods for openvas
00004  *
00005  * Authors:
00006  * Laban Mwangi <lmwangi@penguinlabs.co.ke>
00007  *
00008  * Copyright:
00009  * Copyright (C) 2009 PenguinLabs Limited
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License version 2,
00013  * or, at your option, any later version as published by the Free
00014  * Software Foundation
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
00024  */
00025 
00026 #ifndef _OPENVAS_LOGGING_H
00027 #define _OPENVAS_LOGGING_H
00028 
00029 #include <glib.h>
00030 #include <time.h>
00031 
00032 GSList *load_log_configuration (gchar *);
00033 
00034 void free_log_configuration (GSList *);
00035 
00036 gchar *get_time (gchar *);
00037 
00038 void openvas_log_silent (const char *, GLogLevelFlags, const char *, gpointer);
00039 
00040 void openvas_log_func (const char *, GLogLevelFlags, const char *, gpointer);
00041 
00042 void setup_log_handlers (GSList *);
00043 
00044 #endif /* not _OPENVAS_LOGGING_H */