def __init__(self, logger, level=LogLevel.info, encoding=None):
        self.level = level
        self.log = logger

        if encoding is None:
            self._encoding = sys.getdefaultencoding()
        else:
            self._encoding = encoding

        self._buffer = ""
        self._closed = False
@param logger: the logger to log through.
dataset/ETHPy150Open twisted/twisted/twisted/logger/_io.py/LoggingFile.__init__