libctdb: add logging infrastructure
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 4 Jun 2010 10:57:03 +0000 (20:27 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 4 Jun 2010 10:57:03 +0000 (20:27 +0930)
commit86259aa395555aaf7b2fae7326caa2ea62961092
treebc350b39bc1985c4c327e3a33b2f348c7eb28ce7
parent0786152472bc43efae4c896f7c6c07c6e080b9b2
libctdb: add logging infrastructure

This is based on Ronnie's work, merged with mine.  That means
errors are all my fault.

Differences from Ronnie's:
1) use syslog's LOG_ levels directly.
2) typesafe arg to log function, and use it (eg stderr) in helper function.
3) store fn in ctdb context, and expose ctdb_log_level directly thru API.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Makefile.in
include/ctdb.h
libctdb/ctdb.c
libctdb/libctdb_private.h
libctdb/logging.c [new file with mode: 0644]
libctdb/tst.c