]>
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
32 const char *ident
; /* daemon name (first arg to openlog) */
33 const char *protoname
;
34 unsigned short instance
;
35 int maxlvl
[ZLOG_NUM_DESTS
]; /* maximum priority to send to associated
36 logging destination */
37 int default_lvl
; /* maxlvl to use if none is specified */
40 int facility
; /* as per syslog facility */
41 int record_priority
; /* should messages logged through stdio include the
42 priority of the message? */
43 int syslog_options
; /* 2nd arg to openlog */
44 int timestamp_precision
; /* # of digits of subsecond precision */
47 /* Default logging strucutre. */
48 extern struct zlog
*zlog_default
;
50 extern const char *zlog_priority
[];
52 /* Generic function for zlog. */
53 extern void vzlog(int priority
, const char *format
, va_list args
);
59 #endif /* _ZEBRA_LOG_PRIVATE_H */