summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/logging.h
blob: d172f867fd218f4984d5061631bda9c3cb57ce4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef TDB2_TEST_LOGGING_H
#define TDB2_TEST_LOGGING_H
#include <ccan/tdb2/tdb2.h>
#include <stdbool.h>
#include <string.h>

extern bool suppress_logging;
extern const char *log_prefix;
extern unsigned tap_log_messages;
extern union tdb_attribute tap_log_attr;

void tap_log_fn(struct tdb_context *tdb,
		enum tdb_log_level level,
		const char *message, void *priv);
#endif /* TDB2_TEST_LOGGING_H */