Package jazzparser :: Package shell :: Module tools :: Class LogLevelTool
[hide private]
[frames] | no frames]

Class LogLevelTool

source code

object --+    
         |    
      Tool --+
             |
            LogLevelTool

Change the log level from the shell.

Instance Methods [hide private]
 
run(self, args, state)
Main operation of tool, taking arguments in args and reading and potentially manipulating the shell state.
source code

Inherited from Tool: process_option_list

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  name = 'Set Log Level'
hash(x)
  commands = ['logging']
  usage = ('logging <level>', 'sets the main logger\'s log level...
  help = '\nChange the log level.\nThe whole parser uses a main ...

Inherited from Tool: tool_options

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

run(self, args, state)

source code 

Main operation of tool, taking arguments in args and reading and potentially manipulating the shell state.

By the time this is called, the options dict is available in self.options.

Overrides: Tool.run
(inherited documentation)

Class Variable Details [hide private]

usage

Value:
('logging <level>',
 'sets the main logger\'s log level to the given level name ("DEBUG", \
etc).')

help

Value:
'''
Change the log level.
The whole parser uses a main logger to output debugging info, warnings\
, 
etc. By default, this will only show warnings and errors, but this 
command allows you to change its log level. All subsequent commands 
will output logging at this level.

...