From 2943c77d88eccc195c59ded0aa9a377fcef906d9 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Tue, 9 Jun 2009 05:09:00 +0000 Subject: 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 .client- Signed-off-by: Anand V. Avati --- 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 d2347c02..45b4618a 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); -- cgit