Ignore:
Timestamp:
09/29/11 17:08:47 (13 years ago)
Author:
Malte Marquarding
Message:

Ticket #247: Make new summary work in standard asap by handling logger i/o

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/logging.py

    r1939 r2315  
    1919    create its own casa log sink.
    2020
    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.
    2222
    2323    """
     
    5858        self._log = ""
    5959
     60    def clear(self):
     61        if isinstance(self.logger, LogSink):
     62            logs = self.logger.pop()
     63           
    6064    def push(self, msg, newline=True):
    6165        """Push logs into the buffer. post needs to be called to send them.
Note: See TracChangeset for help on using the changeset viewer.