Sugar.logger: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: === How do I retrieve the top level logging directory on my XO? === The following code prints out the standard directory for logging in sugar. <pre> from sugar import logger ... prin...)
 
No edit summary
Line 1: Line 1:
{{Sugar Almanac}}
=== How do I retrieve the top level logging directory on my XO? ===
=== How do I retrieve the top level logging directory on my XO? ===
The following code prints out the standard directory for logging in sugar.
The following code prints out the standard directory for logging in sugar.

Revision as of 02:55, 2 October 2008

  Sugar Almanac

How do I retrieve the top level logging directory on my XO?

The following code prints out the standard directory for logging in sugar.

from sugar import logger
...
    print logger.get_logs_dir()