]> git.proxmox.com Git - mirror_frr.git/blame - lib/log_vty.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / lib / log_vty.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
f73126c3
SW
2/*
3 * Logging - VTY library
4 * Copyright (C) 2019 Cumulus Networks, Inc.
5 * Stephen Worley
f73126c3
SW
6 */
7
8#ifndef __LOG_VTY_H__
9#define __LOG_VTY_H__
0bdeb5e5
DL
10
11#include "lib/hook.h"
12
17e38209
RW
13#ifdef __cplusplus
14extern "C" {
15#endif
16
0bdeb5e5
DL
17struct vty;
18
19extern void log_cmd_init(void);
20extern void log_config_write(struct vty *vty);
21extern int log_level_match(const char *s);
22extern void log_show_syslog(struct vty *vty);
23
c6610ea9
DL
24extern int facility_match(const char *str);
25extern const char *facility_name(int facility);
26
8451921b 27DECLARE_HOOK(zlog_rotate, (), ());
0bdeb5e5
DL
28extern void zlog_rotate(void);
29
ba9256d2
DL
30DECLARE_HOOK(zlog_cli_show, (struct vty * vty), (vty));
31
17e38209
RW
32#ifdef __cplusplus
33}
34#endif
35
f73126c3 36#endif /* __LOG_VTY_H__ */