[PVFS-developers] patches for consistent, dynamic logging
rross at mcs.anl.gov
Mon Oct 4 15:57:30 EDT 2004
On Tue, 14 Sep 2004, David S Metheny wrote:
> The following patch changes the way the mgr, iod, and library log messages
> for debugging. Before, there were many ERR# and LOG# routines. The routines
> were turned on or off, in an all-or-nothing fashion, and required the
> services to be bounced to change the behavior. This new logging mechanism
> uses a single function, named LOG(...) that accepts any number of parameters
> similar to printf(...). There are 4 logging levels, CRITICAL, WARNING, INFO,
> and DEBUG, which can be matched in any combination, and can be changed
> dynamically, without requiring the services to restart.
> Some other specifics on this patch include...
> Removed debug.h and replaced with log.c and log.h
> Improved logging on connections from clients to show client's hostname
> Added signal handlers for SIGUSR2 to allow dynamic changing of log levels.
> code now allows for core dumps for future debugging use
More information about the PVFS-developers