Flowgrind
Advanced TCP traffic generator
fg_log.h
Go to the documentation of this file.
1 
6 /*
7  * Copyright (C) 2014 Alexander Zimmermann <alexander.zimmermann@netapp.com>
8  * Copyright (C) 2010-2013 Christian Samsel <christian.samsel@rwth-aachen.de>
9  * Copyright (C) 2009 Tim Kosse <tim.kosse@gmx.de>
10  * Copyright (C) 2007-2008 Daniel Schaffrath <daniel.schaffrath@mac.com>
11  *
12  * This file is part of Flowgrind.
13  *
14  * Flowgrind is free software: you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation, either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * Flowgrind is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with Flowgrind. If not, see <http://www.gnu.org/licenses/>.
26  *
27  */
28 
29 #ifndef _LOG_H_
30 #define _LOG_H_
31 
32 #ifdef HAVE_CONFIG_H
33 #include "config.h"
34 #endif /* HAVE_CONFIG_H */
35 
44 };
45 
51 void init_logging(enum log_streams stream);
52 
56 void close_logging(void);
57 
65 void logging(int priority, const char *fmt, ...)
66  __attribute__((format(printf, 2, 3)));
67 
75 void vlogging(int priority, const char *fmt, va_list ap)
76  __attribute__((format(printf, 2, 0)));
77 
78 #endif /* _LOG_H_ */
Log to stderr.
Definition: fg_log.h:41
void close_logging(void)
Close logging stream.
Definition: fg_log.c:57
Log to syslog.
Definition: fg_log.h:39
Log to stdout.
Definition: fg_log.h:43
log_streams
Supported output streams for logging.
Definition: fg_log.h:37
void init_logging(enum log_streams stream)
Open logging stream.
Definition: fg_log.c:43
void logging(int priority, const char *fmt,...) __attribute__((format(printf
Submit log message fmt to logging stream.
void void vlogging(int priority, const char *fmt, va_list ap) __attribute__((format(printf
Submit log message fmt to logging stream.