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