Whamcloud - gitweb
LU-3692 api: More flexible logging API.
authorHenri Doreau <henri.doreau@cea.fr>
Fri, 6 Sep 2013 07:43:48 +0000 (09:43 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 7 Jan 2014 16:27:19 +0000 (11:27 -0500)
commit2634c833dc34339a966eed129542a4c4db224cf7
tree5ddd3ee7e19490fcbb54eeadca5f2580f8ca1af8
parent6b56269b555b6621bf9fb37323c999e2846c327f
LU-3692 api: More flexible logging API.

Allow applications to register their own logging callback instead of
writing every log message to stderr/stdout. Registered callbacks are
global to the process, just like the log level.

Signed-off-by: Henri Doreau <henri.doreau@cea.fr>
Change-Id: I5ccfd1e24f1786408ce67b2cd87d53443bcd028a
Reviewed-on: http://review.whamcloud.com/7572
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_user.h
lustre/include/lustre/lustreapi.h
lustre/utils/liblustreapi.c