Python Standard Logging in Sugar
Jump to navigation
Jump to search
How do I write to a log in my activity code?
Sugar uses python's standard logging. The following code shows how to output something at the debug log level.
import logging _logger = logging.getLogger('annotate-activity') ... _logger.debug('starting activity')