]>
git.proxmox.com Git - mirror_frr.git/blob - lib/log_int.h
2 * Zebra logging funcions.
3 * Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro
5 * This file is part of GNU Zebra.
7 * GNU Zebra is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
12 * GNU Zebra is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef _ZEBRA_LOG_PRIVATE_H
23 #define _ZEBRA_LOG_PRIVATE_H
29 const char *ident
; /* daemon name (first arg to openlog) */
30 const char *protoname
;
32 int maxlvl
[ZLOG_NUM_DESTS
]; /* maximum priority to send to associated
33 logging destination */
34 int default_lvl
; /* maxlvl to use if none is specified */
37 int facility
; /* as per syslog facility */
38 int record_priority
; /* should messages logged through stdio include the
39 priority of the message? */
40 int syslog_options
; /* 2nd arg to openlog */
41 int timestamp_precision
; /* # of digits of subsecond precision */
44 /* Default logging strucutre. */
45 extern struct zlog
*zlog_default
;
47 extern const char *zlog_priority
[];
49 /* Generic function for zlog. */
50 extern void vzlog (int priority
, const char *format
, va_list args
);
51 extern void zlog (int priority
, const char *format
, ...)
52 PRINTF_ATTRIBUTE(2, 3);
54 #endif /* _ZEBRA_LOG_PRIVATE_H */