Go to the source code of this file.
|
int | last_log_entry () |
|
static vlib_log_class_data_t * | get_class_data (vlib_log_class_t ci) |
|
static vlib_log_subclass_data_t * | get_subclass_data (vlib_log_class_t ci) |
|
static int | vlib_log_level_to_syslog_priority (vlib_log_level_t level) |
|
u8 * | format_vlib_log_class (u8 *s, va_list *args) |
|
void | vlib_log (vlib_log_level_t level, vlib_log_class_t class, char *fmt,...) |
|
vlib_log_class_t | vlib_log_register_class (char *class, char *subclass) |
|
u8 * | format_vlib_log_level (u8 *s, va_list *args) |
|
u32 | vlib_log_get_indent () |
|
static clib_error_t * | vlib_log_init (vlib_main_t *vm) |
|
static clib_error_t * | show_log (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | show_log_config (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | clear_log (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static uword | unformat_vlib_log_level (unformat_input_t *input, va_list *args) |
|
static uword | unformat_vlib_log_class (unformat_input_t *input, va_list *args) |
|
static clib_error_t * | set_log_class (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | set_log_unth_time (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | set_log_size (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static uword | unformat_vlib_log_subclass (unformat_input_t *input, va_list *args) |
|
static clib_error_t * | test_log_class_subclass (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | log_config (vlib_main_t *vm, unformat_input_t *input) |
|
◆ LOG_DISABLED
#define LOG_DISABLED LOG_DEBUG |
◆ clear_log()
◆ format_vlib_log_class()
u8* format_vlib_log_class |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
Definition at line 73 of file log.c.
◆ format_vlib_log_level()
u8* format_vlib_log_level |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ get_class_data()
Definition at line 43 of file log.c.
◆ get_subclass_data()
Definition at line 50 of file log.c.
◆ last_log_entry()
Definition at line 30 of file log.c.
◆ log_config()
◆ set_log_class()
◆ set_log_size()
◆ set_log_unth_time()
◆ show_log()
◆ show_log_config()
◆ test_log_class_subclass()
◆ unformat_vlib_log_class()
◆ unformat_vlib_log_level()
◆ unformat_vlib_log_subclass()
◆ vlib_log()
Definition at line 87 of file log.c.
◆ vlib_log_get_indent()
u32 vlib_log_get_indent |
( |
| ) |
|
◆ vlib_log_init()
◆ vlib_log_level_to_syslog_priority()
Definition at line 57 of file log.c.
◆ vlib_log_register_class()
◆ cli_clear_log
Initial value:= {
.path = "clear logging",
.short_help = "clear logging",
}
static clib_error_t * clear_log(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (cli_clear_log)
Definition at line 358 of file log.c.
◆ cli_set_log
Initial value:= {
.path = "set logging class",
.short_help = "set logging class <class> [rate-limit <int>] "
"[level <level>] [syslog-level <level>]",
}
static clib_error_t * set_log_class(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (cli_set_log)
Definition at line 492 of file log.c.
◆ cli_set_log_params
Initial value:= {
.path = "set logging unthrottle-time",
.short_help = "set logging unthrottle-time <int>",
}
static clib_error_t * set_log_unth_time(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (cli_set_log_params)
Definition at line 526 of file log.c.
◆ cli_set_log_size
Initial value:= {
.path = "set logging size",
.short_help = "set logging size <int>",
}
static clib_error_t * set_log_size(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (cli_set_log_size)
Definition at line 562 of file log.c.
◆ cli_show_log
Initial value:= {
.path = "show logging",
.short_help = "show logging",
}
static clib_error_t * show_log(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (cli_show_log)
Definition at line 279 of file log.c.
◆ cli_show_log_config
Initial value:= {
.path = "show logging configuration",
.short_help = "show logging configuration",
}
static clib_error_t * show_log_config(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (cli_show_log_config)
Definition at line 327 of file log.c.
◆ cli_test_log
Initial value:= {
.path = "test log",
.short_help = "test log <level> <class> <subclass> <message>",
}
static clib_error_t * test_log_class_subclass(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (cli_test_log)
Definition at line 641 of file log.c.
◆ log_main
Initial value:= {
.default_log_level = VLIB_LOG_LEVEL_NOTICE,
.default_syslog_log_level = VLIB_LOG_LEVEL_WARNING,
.unthrottle_time = 3,
.size = 512,
.default_rate_limit = 50,
}
Definition at line 21 of file log.c.