summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/logging.h
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-08-31 04:10:17 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-08-31 07:43:57 -0700
commit4ae3853d857e584189289b33f8ba929fbd9cc7e1 (patch)
tree4527a1a6ea019bc6a5198da01723c6f7c660203a /libglusterfs/src/logging.h
parentcd5d2fc036003eb0c1a7f91755d3f5aa327067b4 (diff)
Add command logging facility for glusterd
Added new command logging facility to gf_cmd_log() which can be used to log all commands to a .cmd_log_history file situated in the glusterd working directory. Accepts 1 st argument a domain string (e.g: volume, peer..) followed by msg string (similar to gf_log) Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1404 (need a dump of all the op/mgmt commands) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1404
Diffstat (limited to 'libglusterfs/src/logging.h')
-rw-r--r--libglusterfs/src/logging.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h
index f727bfe42..39b593850 100644
--- a/libglusterfs/src/logging.h
+++ b/libglusterfs/src/logging.h
@@ -120,4 +120,9 @@ void gf_log_set_xl_loglevel (void *xl, gf_loglevel_t level);
#define GF_ERROR(xl, format, args...) \
gf_log ((xl)->name, GF_LOG_ERROR, format, ##args)
+int
+gf_cmd_log (const char *domain, const char *fmt, ...);
+
+int
+gf_cmd_log_init (const char *filename);
#endif /* __LOGGING_H__ */