]> git.proxmox.com Git - mirror_frr.git/blame - lib/log_int.h
Merge pull request #5763 from ton31337/fix/return_without_parent
[mirror_frr.git] / lib / log_int.h
CommitLineData
deaa50db
DL
1/*
2 * Zebra logging funcions.
3 * Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro
4 *
5 * This file is part of GNU Zebra.
6 *
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
10 * later version.
11 *
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.
16 *
896014f4
DL
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
deaa50db
DL
20 */
21
22#ifndef _ZEBRA_LOG_PRIVATE_H
23#define _ZEBRA_LOG_PRIVATE_H
24
25#include "log.h"
26
5e244469
RW
27#ifdef __cplusplus
28extern "C" {
29#endif
30
d62a17ae 31struct zlog {
32 const char *ident; /* daemon name (first arg to openlog) */
33 const char *protoname;
d7c0a89a 34 unsigned short instance;
d62a17ae 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 */
38 FILE *fp;
39 char *filename;
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 */
deaa50db
DL
45};
46
47/* Default logging strucutre. */
48extern struct zlog *zlog_default;
49
50extern const char *zlog_priority[];
51
52/* Generic function for zlog. */
d62a17ae 53extern void vzlog(int priority, const char *format, va_list args);
deaa50db 54
5e244469
RW
55#ifdef __cplusplus
56}
57#endif
58
deaa50db 59#endif /* _ZEBRA_LOG_PRIVATE_H */