Changeset 2315 for trunk/python/logging.py
- Timestamp:
- 09/29/11 17:08:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/logging.py
r1939 r2315 19 19 create its own casa log sink. 20 20 21 .. note:: Do instantiate a new one - use the :obj:`asaplog` instead.21 .. note:: Do not instantiate a new one - use the :obj:`asaplog` instead. 22 22 23 23 """ … … 58 58 self._log = "" 59 59 60 def clear(self): 61 if isinstance(self.logger, LogSink): 62 logs = self.logger.pop() 63 60 64 def push(self, msg, newline=True): 61 65 """Push logs into the buffer. post needs to be called to send them.
Note: See TracChangeset
for help on using the changeset viewer.