FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
log.h File Reference
+ Include dependency graph for log.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define foreach_vlib_log_level
 
#define vlib_log_emerg(...)   vlib_log(VLIB_LOG_LEVEL_EMERG, __VA_ARGS__)
 
#define vlib_log_alert(...)   vlib_log(VLIB_LOG_LEVEL_ALERT, __VA_ARGS__)
 
#define vlib_log_crit(...)   vlib_log(VLIB_LOG_LEVEL_CRIT, __VA_ARGS__)
 
#define vlib_log_err(...)   vlib_log(VLIB_LOG_LEVEL_ERR, __VA_ARGS__)
 
#define vlib_log_warn(...)   vlib_log(VLIB_LOG_LEVEL_WARNING, __VA_ARGS__)
 
#define vlib_log_notice(...)   vlib_log(VLIB_LOG_LEVEL_NOTICE, __VA_ARGS__)
 
#define vlib_log_info(...)   vlib_log(VLIB_LOG_LEVEL_INFO, __VA_ARGS__)
 
#define vlib_log_debug(...)   vlib_log(VLIB_LOG_LEVEL_DEBUG, __VA_ARGS__)
 

Typedefs

typedef u32 vlib_log_class_t
 

Enumerations

enum  vlib_log_level_t { foreach_vlib_log_level }
 

Functions

vlib_log_class_t vlib_log_register_class (char *vlass, char *subclass)
 
u32 vlib_log_get_indent ()
 
void vlib_log (vlib_log_level_t level, vlib_log_class_t class, char *fmt,...)
 

Macro Definition Documentation

#define foreach_vlib_log_level
Value:
_(0, EMERG, emerg) \
_(1, ALERT, alert) \
_(2, CRIT, crit) \
_(3, ERR, err) \
_(4, WARNING, warn) \
_(5, NOTICE, notice) \
_(6, INFO, info) \
_(7, DEBUG, debug) \
_(8, DISABLED, disabled)
#define DEBUG
Definition: vppctl.c:25
#define INFO(...)
Definition: main.c:64

Definition at line 23 of file log.h.

#define vlib_log_alert (   ...)    vlib_log(VLIB_LOG_LEVEL_ALERT, __VA_ARGS__)

Definition at line 48 of file log.h.

#define vlib_log_crit (   ...)    vlib_log(VLIB_LOG_LEVEL_CRIT, __VA_ARGS__)

Definition at line 49 of file log.h.

#define vlib_log_debug (   ...)    vlib_log(VLIB_LOG_LEVEL_DEBUG, __VA_ARGS__)

Definition at line 54 of file log.h.

#define vlib_log_emerg (   ...)    vlib_log(VLIB_LOG_LEVEL_EMERG, __VA_ARGS__)

Definition at line 47 of file log.h.

#define vlib_log_err (   ...)    vlib_log(VLIB_LOG_LEVEL_ERR, __VA_ARGS__)

Definition at line 50 of file log.h.

#define vlib_log_info (   ...)    vlib_log(VLIB_LOG_LEVEL_INFO, __VA_ARGS__)

Definition at line 53 of file log.h.

#define vlib_log_notice (   ...)    vlib_log(VLIB_LOG_LEVEL_NOTICE, __VA_ARGS__)

Definition at line 52 of file log.h.

#define vlib_log_warn (   ...)    vlib_log(VLIB_LOG_LEVEL_WARNING, __VA_ARGS__)

Definition at line 51 of file log.h.

Typedef Documentation

Definition at line 21 of file log.h.

Enumeration Type Documentation

Enumerator
foreach_vlib_log_level 

Definition at line 34 of file log.h.

Function Documentation

void vlib_log ( vlib_log_level_t  level,
vlib_log_class_t  class,
char *  fmt,
  ... 
)

Definition at line 133 of file log.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 vlib_log_get_indent ( )

Definition at line 269 of file log.c.

+ Here is the caller graph for this function:

vlib_log_class_t vlib_log_register_class ( char *  vlass,
char *  subclass 
)

Definition at line 221 of file log.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: