Logging

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Logging

Marco Pesenti Gritti
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