#define _ZEBRA_LOG_H
#include <syslog.h>
+#include <stdio.h>
/* Here is some guidance on logging levels to use:
*
* please use LOG_ERR instead.
*/
+/*
+ * This must be kept in the same order as
+ * zlog_proto_names[]
+ */
typedef enum
{
ZLOG_NONE,
ZLOG_OSPF,
ZLOG_RIPNG,
ZLOG_OSPF6,
+ ZLOG_LDP,
ZLOG_ISIS,
ZLOG_PIM,
- ZLOG_MASC
+ ZLOG_NHRP,
+ ZLOG_RFP,
+ ZLOG_WATCHFRR,
} zlog_proto_t;
/* If maxlvl is set to ZLOG_DISABLED, then no messages will be sent
PRINTF_ATTRIBUTE(3, 4);
/* Handy zlog functions. */
+extern void vzlog (struct zlog *zl, int priority, const char *format, va_list args);
extern void zlog_err (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
extern void zlog_warn (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
extern void zlog_info (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
extern void zlog_notice (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
extern void zlog_debug (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
+extern void vzlog (struct zlog *, int , const char *, va_list );
+
extern void zlog_thread_info (int log_level);
/* Set logging level for the given destination. If the log_level
char *buf, size_t buflen);
extern void zlog_hexdump(const void *mem, unsigned int len);
+extern const char *zlog_sanitize(char *buf, size_t bufsz, const void *in, size_t inlen);
+
+
+extern int
+vzlog_test (struct zlog *zl, int priority);
/* structure useful for avoiding repeated rendering of the same timestamp */
struct timestamp_control {