[Bugs] #1089 UNSP: sugar.logger: add trace decorator

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Wed Jul 22 12:53:14 EDT 2009


#1089: sugar.logger: add trace decorator
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  tomeu            
        Type:  enhancement                |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.86             
   Component:  sugar                      |        Version:  Git as of bugdate
    Severity:  Unspecified                |       Keywords:                   
Distribution:  Unspecified                |   Status_field:  New              
------------------------------------------+---------------------------------
 The attached patch adds a trace decorator to sugar.logger. It can be used
 to trace function calls and limits the size of the items it logs. This way
 e.g. the "preview" attribute (metadata) will be shortened automatically.
 It will only trace calls if the new log level TRACE is in effect, which
 can be done by setting SUGAR_LOGGER_LEVEL to one of the new values 'trace'
 (lower than 'debug', i.e. 'debug' will be enabled as well) or 'all' (log
 everything).

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/1089>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list