'Close the logger.'

def close(self):

    self.rootLogger.setLevel(self.originalLevel)
    self.rootLogger.removeHandler(self.bufferedHandler)
    self.rootLogger.removeHandler(self.streamHandler)
    self.streamHandler.close()
    self.output.close()
