summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/logging.h
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-06-09 05:09:00 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-11 07:51:27 -0700
commit2943c77d88eccc195c59ded0aa9a377fcef906d9 (patch)
tree6b8fc23fe70020a627ef4701bf38a2c9880a8927 /libglusterfs/src/logging.h
parente7e6144a7688b35255ef5d69b060bd90e319679f (diff)
Log to a central server.
Several functions to support centralized logging: - create a logging thread upon init - gf_log submits log messages to the logging thread which in turn sends it to the server using the MOP log - on the server side, log messages from a client are written to the filename <log file name>.client-<transport-identifier> Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src/logging.h')
-rw-r--r--libglusterfs/src/logging.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h
index d2347c02ba8..45b4618aece 100644
--- a/libglusterfs/src/logging.h
+++ b/libglusterfs/src/logging.h
@@ -106,6 +106,9 @@ int
_gf_log (const char *domain, const char *file, const char *function,
int32_t line, gf_loglevel_t level, const char *fmt, ...);
+int
+gf_log_from_client (const char *msg, char *identifier);
+
void gf_log_lock (void);
void gf_log_unlock (void);