[Openais] [patch] improved logging and tracing support

Steven Dake sdake at redhat.com
Wed Apr 12 19:24:19 PDT 2006


On Tue, 2006-04-11 at 14:50 +0200, Hans Feldt wrote:
> Hans Feldt wrote:
> 
> > OK I am onto it again. But I have some maybe controversal ideas:
> 
> I now have tracing configurable from openais.conf:
> 
> logging {
> 	to_stderr: yes
> 	to_file: yes
> 	to_syslog: no
> 	logfile: /tmp/ais.log
> 	debug: off
> 	timestamp: on
> 	logger {
> 		name: CKPT
> 		debug: on
> 		tags: enter|leave
> 	}
> 	logger {
> 		name: AMF
> 		debug: on
> 		tags: enter|leave|trace1
> 	}
> }
> 
> How does this look?
> 
looks great!

> I would like to remove the timestamp option completely, timestamps 
> should always be used anyway?
> 

The gettimeofday system call and associated formatting is somewhat
expensive and hence I believe should be configurable by the user for all
debugging output.

regards
-steve

> Regards,
> Hans




More information about the Openais mailing list