def __init__(self):
self._record = True<EOL>self._module = sys.modules['<STR_LIT>']<EOL>self._entered = False<EOL>self.log = []<EOL>
Parameters
==========
category : warning class
    The category to filter. Defaults to Warning. If None,
    all categories will be muted.