ctdb-logging: New option CTDB_LOGGING, remove CTDB_LOGFILE, CTDB_SYSLOG
commit1d1cd04cb9b8e66e0303c362669db2c6c47fccae
authorMartin Schwenke <martin@meltin.net>
Mon, 11 Aug 2014 07:07:41 +0000 (11 17:07 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 28 Oct 2014 04:42:04 +0000 (28 05:42 +0100)
tree09244a813bbdbb0a0ad20a44c42cd5c8fe699860
parent29745543566ef66c1f2972fd5cd68e17ddf4de4f
ctdb-logging: New option CTDB_LOGGING, remove CTDB_LOGFILE, CTDB_SYSLOG

Remove --logfile and --syslog daemon options and replace with
--logging.

Modularise and clean up logging initialisation code.  The
initialisation API includes an app_name argument that is currently
unused - this will be used in extensions to the syslog backend.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
15 files changed:
ctdb/config/ctdb.sysconfig
ctdb/config/ctdbd_wrapper
ctdb/config/functions
ctdb/doc/ctdbd.1.xml
ctdb/doc/ctdbd.conf.5.xml
ctdb/doc/examples/cluster.conf
ctdb/doc/examples/natgw.conf
ctdb/include/ctdb_client.h
ctdb/include/ctdb_logging.h
ctdb/server/ctdb_logging.c
ctdb/server/ctdb_logging_file.c
ctdb/server/ctdb_logging_syslog.c
ctdb/server/ctdbd.c
ctdb/tests/eventscripts/scripts/local.sh
ctdb/tests/simple/scripts/local_daemons.bash