OpenVAS Scanner  5.1.3
log.h
Go to the documentation of this file.
1 /* OpenVAS
2 * $Id $
3 * Description: log.c header.
4 *
5 * Authors: - Renaud Deraison <deraison@nessus.org> (Original pre-fork develoment)
6 * - Tim Brown <mailto:timb@openvas.org> (Initial fork)
7 * - Laban Mwangi <mailto:labanm@openvas.org> (Renaming work)
8 * - Tarik El-Yassem <mailto:tarik@openvas.org> (Headers section)
9 *
10 * Copyright:
11 * Portions Copyright (C) 2006 Software in the Public Interest, Inc.
12 * Based on work Copyright (C) 1998 - 2006 Tenable Network Security, Inc.
13 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2,
16 * as published by the Free Software Foundation
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 *
27 *
28 */
29 
30 
31 
32 #ifndef _OPENVAS_LOG_H
33 #define _OPENVAS_LOG_H
34 
35 #include <stdarg.h>
36 
37 void log_init (const char *);
38 void log_close (void);
39 int log_get_fd ();
40 #ifdef __GNUC__
41 void log_vwrite (const char *, va_list) __attribute__ ((format (printf, 1, 0)));
42 void log_write (const char *, ...) __attribute__ ((format (printf, 1, 2)));
43 #else
44 void log_vwrite (const char *, va_list);
45 void log_write (const char *, ...);
46 #endif
47 
48 
49 #endif
int log_get_fd()
Get the open log file descriptor.
Definition: log.c:84
void log_vwrite(const char *, va_list)
Write into the logfile / syslog using a va_list.
Definition: log.c:110
void log_write(const char *,...)
Write into the logfile / syslog.
Definition: log.c:140
void log_close(void)
Definition: log.c:90
void log_init(const char *)
Initialization of the log file.
Definition: log.c:48