From 41b721baee31356f442b1fb3f198456a0dd3b2db Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Tue, 14 May 2013 14:53:07 +0530 Subject: log: send current gf_log to syslog conditionally When compile time option GF_USE_SYSLOG is enabled (which is default), generated logs are sent to syslog with error code ERR_DEV. User can opt to use traditional log at run time by creating /var/log/glusterd/logger.conf file and restarting respective gluster services. Change-Id: I9837d0f99da1afc2189d7ecd214c4293ec53715a BUG: 928648 Signed-off-by: Bala.FA Reviewed-on: http://review.gluster.org/5002 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- libglusterfs/src/logging.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libglusterfs/src/logging.h') diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h index d08f944c..3c65bf4a 100644 --- a/libglusterfs/src/logging.h +++ b/libglusterfs/src/logging.h @@ -72,6 +72,9 @@ typedef struct gf_log_handle_ { FILE *gf_log_logfile; char *cmd_log_filename; FILE *cmdlogfile; +#ifdef GF_USE_SYSLOG + int log_control_file_found; +#endif /* GF_USE_SYSLOG */ } gf_log_handle_t; -- cgit