add_file_handler

log.Log.add_file_handler(dst, level=2, filename=None)

Add an outlet to a file.

Parameters

Name Type Description Default
dst str The destination of the file, i.e. the path. required
level int Logging level. 2
filename str The name of the file, also the identifier for the steam handler. None
Back to top