Package pyrobot :: Package system :: Module log :: Class Log
[frames | no frames]

Class Log


A log class to do automatically what needs to be done for each
experiment.

Method Summary
  __init__(self, filename, name, robot, brain, echo, mode)
Pass in robot and brain so that we can query them (and maybe make copies and query them on occation).
  close(self)
Close the log...
  flush(self)
  timestamp(self)
  write(self, msg)
Write a string to the log...
  writeln(self, msg)
Write a line (with newline) to the log...

Method Details

__init__(self, filename=None, name=None, robot=None, brain=None, echo=1, mode='w')
(Constructor)

Pass in robot and brain so that we can query them (and maybe make
copies and query them on occation).
If echo is True, then it will echo the log file to the terminal

close(self)

Close the log

write(self, msg)

Write a string to the log

writeln(self, msg)

Write a line (with newline) to the log

Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 http://epydoc.sf.net