18 from .platform
import PY3
23 f = io.open(path,
'w', encoding=encoding, newline=newline)
25 f = io.StringIO(newline=newline)
39 return io.open(path,
'wb')
42 f.getvalue =
lambda encoding=
'UTF-8': getvalue().decode(encoding)
def write(msg, level='INFO', html=False)
Writes the message to the log file using the given level.
unicode
Exceptions and return codes used internally.
def file_writer(path=None, encoding='UTF-8', newline=None)
def binary_file_writer(path=None)