|author||Bala.FA <firstname.lastname@example.org>||2013-08-09 16:51:11 +0530|
|committer||Vijay Bellur <email@example.com>||2013-08-13 07:07:43 -0700|
log: set ident to openlog
at syslog side, log message is identified by its properties like programname, pid, etc. brick/mount processes need to be identified uniquely as they are different process of gluterfsd/glusterfs. At rsyslog side, log separated by programname/app-name with pid works but bit hard to identify them in long run which process is for what brick/mount. This patch fixes by setting identity string at openlog() which sets programname/app-name as similar to old style log file prefixed by gluster, glusterd, glusterfs or glusterfsd Change-Id: Ia05068943fa67ae1663aaded1444cf84ea648db8 BUG: 928648 Signed-off-by: Bala.FA <firstname.lastname@example.org> Reviewed-on: http://review.gluster.org/5541 Reviewed-by: Vijay Bellur <email@example.com> Tested-by: Gluster Build System <firstname.lastname@example.org>
Diffstat (limited to 'doc')
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/logging.txt b/doc/logging.txt
index 71e4301..e4a8575 100644
@@ -55,11 +55,12 @@ gf_syslog (GF_ERR_DEV, LOG_ERR, "error reading configuration file");
The logs are sent in CEE format (http://cee.mitre.org/) to syslog.
Its targeted to rsyslog syslog server.
-This log framework can be disabled either at compile time or run time
+This log framework is enabled at compile time by default. This can be
+disabled by passing '--disable-syslog' to ./configure or '--without
+syslog' to rpmbuild
-- for compile time by passing '--disable-syslog' to ./configure or
- '--without syslog' to rpmbuild (or)
-- for run time by having a file /var/lib/glusterd/logger.conf and
- restarting gluster services
+Even though its enabled at compile time, its required to have
+/var/lib/glusterd/logger.conf file to make it into effect before
+starting gluster services
Currently all gluster logs are sent with error code GF_ERR_DEV.