OpenDNSSEC-enforcer  2.0.2
log.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Jerry Lundström <lundstrom.jerry@gmail.com>
3  * Copyright (c) 2014 .SE (The Internet Infrastructure Foundation).
4  * Copyright (c) 2014 OpenDNSSEC AB (svb)
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  * notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
22  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  *
28  */
29 
30 #include <stdio.h>
31 #include <stdarg.h>
32 #include <stdlib.h>
33 
34 void ods_log_deeebug(const char *format, ...) {
35  va_list args;
36  va_start(args, format);
37  vprintf(format, args);
38  va_end(args);
39 }
40 
41 void ods_log_debug(const char *format, ...) {
42  va_list args;
43  va_start(args, format);
44  vprintf(format, args);
45  va_end(args);
46 }
47 
48 void ods_log_verbose(const char *format, ...) {
49  va_list args;
50  va_start(args, format);
51  vprintf(format, args);
52  va_end(args);
53 }
54 
55 void ods_log_info(const char *format, ...) {
56  va_list args;
57  va_start(args, format);
58  vprintf(format, args);
59  va_end(args);
60 }
61 
62 void ods_log_warning(const char *format, ...) {
63  va_list args;
64  va_start(args, format);
65  vprintf(format, args);
66  va_end(args);
67 }
68 
69 void ods_log_error(const char *format, ...) {
70  va_list args;
71  va_start(args, format);
72  vprintf(format, args);
73  va_end(args);
74 }
75 
76 void ods_log_verror(const char *format, va_list args) {
77  vprintf(format, args);
78 }
79 
80 void ods_log_crit(const char *format, ...) {
81  va_list args;
82  va_start(args, format);
83  vprintf(format, args);
84  va_end(args);
85 }
86 
87 void ods_log_alert(const char *format, ...) {
88  va_list args;
89  va_start(args, format);
90  vprintf(format, args);
91  va_end(args);
92 }
93 
94 void ods_fatal_exit(const char *format, ...) {
95  va_list args;
96  va_start(args, format);
97  vprintf(format, args);
98  va_end(args);
99  exit(1);
100 }
void ods_log_alert(const char *format,...)
Definition: log.c:87
void ods_log_debug(const char *format,...)
Definition: log.c:41
void ods_fatal_exit(const char *format,...)
Definition: log.c:94
void ods_log_verror(const char *format, va_list args)
Definition: log.c:76
void ods_log_info(const char *format,...)
Definition: log.c:55
void ods_log_error(const char *format,...)
Definition: log.c:69
void ods_log_crit(const char *format,...)
Definition: log.c:80
void ods_log_verbose(const char *format,...)
Definition: log.c:48
void ods_log_deeebug(const char *format,...)
Definition: log.c:34
void ods_log_warning(const char *format,...)
Definition: log.c:62