[sugar] Logging

Marco Pesenti Gritti mpg
Fri Aug 11 09:32:58 EDT 2006


Hi,

please use the logging API when writing code for sugar or sugar 
activities rather than print (for debug messages, info messages, 
exceptions...)

It's very simple:

import logging

logging.info('mymessage')
logging.debug('mydebugmessage')

...

This will ensure the messages are correctly displayed on the console 
rather than on standard output.

Marco


More information about the Sugar-devel mailing list