Hi Lucas,

Before the merge with Autotest we used kvm_log.py to log formatted messages.
Each message contained the current test's 'shortname' (e.g. 
Fedora.8.32.install), the current date and time (down to a 1 sec resolution) 
and the message itself. In addition, debug messages contained the name of the 
calling function, e.g.
remote_login: Trying to login...

What is the preferred way of obtaining this functionality using the new logging 
system inside Autotest? Should we define our own logging Handler for the KVM 
test in kvm.py, along with our own Formatter, or should we use 
logging.config.fileConfig(), or is there another preferred way?
I'm particularly interested in printing the name of the caller in debug 
messages. This feature makes debugging easier and improves overall readability 
of the logs. (Obviously we can manually hardcode the name of the current 
function into every debug message, but that doesn't seem like a good solution.)

Thanks,
Michael
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to