← Back to team overview

openstack team mailing list archive

Re: Improving logging

 

Typically one may specify a logging-level (verbose, warning, error) with each log message. The user then can specify run time log level at which point all messages at a level >= log-level get displayed (error would be the highest level and always display).
New to Open Stack .. my vote .. go ahead an add the log messages, bet I will benefit from them!
The only time logging can interfere is when there are race condition bugs that one is trying to debug .. the issue then is the process of inspection alters the inspected!

Cheers
Malini

-----Original Message-----
From: openstack-bounces+malini.k.bhandaru=intel.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+malini.k.bhandaru=intel.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Eugene Kirpichov
Sent: Wednesday, July 18, 2012 4:32 PM
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: [Openstack] Improving logging

Hi,

I noticed that there are quite a few cases when I found my OpenStack
installation is broken and logging was not verbose enough for me to
understand what exactly was broken, so I had to add more logging
statements to the code and relaunch.

Would it be useful to contribute such small logging-only patches
aplenty as they appear or would that just unnecessarily bother the
reviewers?
Are there any logging "best practices" in OpenStack - e.g., is anyone
worried about the possible code bloat or "log bloat" due to too many
logging statements?
(my experience says that it's impossible to have too many logging
statements in a complex system, but well).

Also, is the log format supposed to be machine-parseable / do people
depend on it, or does it make sense to try introducing patches
increasing readability of logs, fixing typos etc.?

Thanks.

[That's my first email to the list. Nice to meet you. I'm a huge fan
of everything that helps understand the behavior of distributed
systems, thus my interest specifically in logging]

-- 
Eugene Kirpichov
http://www.linkedin.com/in/eugenekirpichov

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


References