version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.4, 2016/11/02 10:09:11
|
Line 49 typedef enum
|
Line 49 typedef enum
|
ZLOG_RIP, |
ZLOG_RIP, |
ZLOG_BGP, |
ZLOG_BGP, |
ZLOG_OSPF, |
ZLOG_OSPF, |
ZLOG_RIPNG, | ZLOG_RIPNG, |
| ZLOG_BABEL, |
ZLOG_OSPF6, |
ZLOG_OSPF6, |
ZLOG_ISIS, |
ZLOG_ISIS, |
|
ZLOG_PIM, |
ZLOG_MASC |
ZLOG_MASC |
} zlog_proto_t; |
} zlog_proto_t; |
|
|
Line 131 extern void plog_notice (struct zlog *, const char *fo
|
Line 133 extern void plog_notice (struct zlog *, const char *fo
|
extern void plog_debug (struct zlog *, const char *format, ...) |
extern void plog_debug (struct zlog *, const char *format, ...) |
PRINTF_ATTRIBUTE(2, 3); |
PRINTF_ATTRIBUTE(2, 3); |
|
|
|
extern void zlog_thread_info (int log_level); |
|
|
/* Set logging level for the given destination. If the log_level |
/* Set logging level for the given destination. If the log_level |
argument is ZLOG_DISABLED, then the destination is disabled. |
argument is ZLOG_DISABLED, then the destination is disabled. |
This function should not be used for file logging (use zlog_set_file |
This function should not be used for file logging (use zlog_set_file |
Line 145 extern int zlog_reset_file (struct zlog *zl);
|
Line 149 extern int zlog_reset_file (struct zlog *zl);
|
/* Rotate log. */ |
/* Rotate log. */ |
extern int zlog_rotate (struct zlog *); |
extern int zlog_rotate (struct zlog *); |
|
|
/* For hackey massage lookup and check */ | /* For hackey message lookup and check */ |
#define LOOKUP(x, y) mes_lookup(x, x ## _max, y, "(no item found)", #x) | #define LOOKUP_DEF(x, y, def) mes_lookup(x, x ## _max, y, def, #x) |
| #define LOOKUP(x, y) LOOKUP_DEF(x, y, "(no item found)") |
|
|
extern const char *lookup (const struct message *, int); |
extern const char *lookup (const struct message *, int); |
extern const char *mes_lookup (const struct message *meslist, |
extern const char *mes_lookup (const struct message *meslist, |
Line 183 extern void zlog_backtrace_sigsafe(int priority, void
|
Line 188 extern void zlog_backtrace_sigsafe(int priority, void
|
*buf will be set to '\0', and 0 will be returned. */ |
*buf will be set to '\0', and 0 will be returned. */ |
extern size_t quagga_timestamp(int timestamp_precision /* # subsecond digits */, |
extern size_t quagga_timestamp(int timestamp_precision /* # subsecond digits */, |
char *buf, size_t buflen); |
char *buf, size_t buflen); |
|
|
|
extern void zlog_hexdump(void *mem, unsigned int len); |
|
|
/* structure useful for avoiding repeated rendering of the same timestamp */ |
/* structure useful for avoiding repeated rendering of the same timestamp */ |
struct timestamp_control { |
struct timestamp_control { |