Blame


1 0237feaa 2021-11-25 op /*
2 0237feaa 2021-11-25 op * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
3 0237feaa 2021-11-25 op *
4 0237feaa 2021-11-25 op * Permission to use, copy, modify, and distribute this software for any
5 0237feaa 2021-11-25 op * purpose with or without fee is hereby granted, provided that the above
6 0237feaa 2021-11-25 op * copyright notice and this permission notice appear in all copies.
7 0237feaa 2021-11-25 op *
8 0237feaa 2021-11-25 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 0237feaa 2021-11-25 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 0237feaa 2021-11-25 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 0237feaa 2021-11-25 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 0237feaa 2021-11-25 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 0237feaa 2021-11-25 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 0237feaa 2021-11-25 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 0237feaa 2021-11-25 op */
16 0237feaa 2021-11-25 op
17 0237feaa 2021-11-25 op #ifndef LOG_H
18 0237feaa 2021-11-25 op #define LOG_H
19 0237feaa 2021-11-25 op
20 0237feaa 2021-11-25 op void log_init(int, int);
21 0237feaa 2021-11-25 op void log_procinit(const char *);
22 0237feaa 2021-11-25 op void log_setverbose(int);
23 0237feaa 2021-11-25 op int log_getverbose(void);
24 0237feaa 2021-11-25 op void log_warn(const char *, ...)
25 0237feaa 2021-11-25 op __attribute__((__format__ (printf, 1, 2)));
26 0237feaa 2021-11-25 op void log_warnx(const char *, ...)
27 0237feaa 2021-11-25 op __attribute__((__format__ (printf, 1, 2)));
28 0237feaa 2021-11-25 op void log_info(const char *, ...)
29 0237feaa 2021-11-25 op __attribute__((__format__ (printf, 1, 2)));
30 0237feaa 2021-11-25 op void log_debug(const char *, ...)
31 0237feaa 2021-11-25 op __attribute__((__format__ (printf, 1, 2)));
32 0237feaa 2021-11-25 op void logit(int, const char *, ...)
33 0237feaa 2021-11-25 op __attribute__((__format__ (printf, 2, 3)));
34 0237feaa 2021-11-25 op void vlog(int, const char *, va_list)
35 0237feaa 2021-11-25 op __attribute__((__format__ (printf, 2, 0)));
36 0237feaa 2021-11-25 op void fatal(const char *, ...)
37 0237feaa 2021-11-25 op __attribute__((__format__ (printf, 1, 2)))
38 0237feaa 2021-11-25 op __attribute__((noreturn));
39 0237feaa 2021-11-25 op void fatalx(const char *, ...)
40 0237feaa 2021-11-25 op __attribute__((__format__ (printf, 1, 2)))
41 0237feaa 2021-11-25 op __attribute__((noreturn));
42 0237feaa 2021-11-25 op
43 0237feaa 2021-11-25 op #endif /* LOG_H */