]>
Commit | Line | Data |
---|---|---|
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 |
14 | extern "C" { | |
15 | #endif | |
16 | ||
0bdeb5e5 DL |
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 | ||
c6610ea9 DL |
24 | extern int facility_match(const char *str); |
25 | extern const char *facility_name(int facility); | |
26 | ||
8451921b | 27 | DECLARE_HOOK(zlog_rotate, (), ()); |
0bdeb5e5 DL |
28 | extern void zlog_rotate(void); |
29 | ||
ba9256d2 DL |
30 | DECLARE_HOOK(zlog_cli_show, (struct vty * vty), (vty)); |
31 | ||
17e38209 RW |
32 | #ifdef __cplusplus |
33 | } | |
34 | #endif | |
35 | ||
f73126c3 | 36 | #endif /* __LOG_VTY_H__ */ |