Package moap :: Package util :: Module command
[hide private]
[frames] | no frames]

Source Code for Module moap.util.command

 1  # -*- Mode: Python; test-case-name: testsuite.test_util_command -*- 
 2  # vi:si:et:sw=4:sts=4:ts=4 
 3   
 4  """ 
 5  Command class. 
 6  """ 
 7  from moap.extern.log import log 
 8  from moap.extern.command import command 
 9   
10 -class LogCommand(command.Command, log.Loggable):
11 - def __init__(self, parentCommand=None, **kwargs):
12 command.Command.__init__(self, parentCommand, **kwargs) 13 self.logCategory = self.name
14 15 # command.Command has a fake debug method, so choose the right one
16 - def debug(self, format, *args):
17 kwargs = {} 18 log.Loggable.doLog(self, log.DEBUG, -2, format, *args, **kwargs)
19