Package pythonutils :: Module standout :: Class StandOut
[hide private]
[frames] | no frames]

Class StandOut
source code

Instance Methods [hide private]
  __init__(self, indict=None, **keywargs)
StandOut - the Flexible Output Object (FOO !)
  write(self, line, priority=0)
Print to any of the output methods we are using.
  close(self)
Restore the stdout stream and close the logging file if it's open.
  set_print(self, print_fun)
Set a new print_fun.
  setall(self, verbosity)
Sets the verbosity level for all the output methods.
  flush(self)
  writelines(self, inline)
  __getattr__(self, attribute)
  use_print(self, line)
A wrapper function for the function passed in as 'print_fun'.

Class Variables [hide private]
stdout  
stderr  

Method Details [hide private]

__init__(self, indict=None, **keywargs)
(Constructor)

source code 
StandOut - the Flexible Output Object (FOO !)

write(self, line, priority=0)

source code 
Print to any of the output methods we are using. Capture lines which set priority.

close(self)

source code 
Restore the stdout stream and close the logging file if it's open.

set_print(self, print_fun)

source code 
Set a new print_fun.

setall(self, verbosity)

source code 
Sets the verbosity level for all the output methods.

flush(self)

source code 

writelines(self, inline)

source code 

__getattr__(self, attribute)
(Qualification operator)

source code 

use_print(self, line)

source code 
A wrapper function for the function passed in as 'print_fun'.

Class Variable Details [hide private]

stdout

Value:
None                                                                  
      

stderr

Value:
None