diff options
Diffstat (limited to 'src/vlib/log.h')
-rw-r--r-- | src/vlib/log.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vlib/log.h b/src/vlib/log.h index 9a0c44475d2..4cceb4b962a 100644 --- a/src/vlib/log.h +++ b/src/vlib/log.h @@ -68,6 +68,14 @@ typedef struct typedef struct { + vlib_log_level_t level; + vlib_log_level_t syslog_level; + int rate_limit; + char *name; +} vlib_log_class_config_t; + +typedef struct +{ vlib_log_entry_t *entries; vlib_log_class_data_t *classes; int size, next, count; @@ -85,6 +93,9 @@ typedef struct struct timeval time_zero_timeval; f64 time_zero; + /* config */ + vlib_log_class_config_t *configs; + uword *config_index_by_name; } vlib_log_main_t; extern vlib_log_main_t log_main; |