add_file_handler
=2, filename=None) log.Logger.add_file_handler(dst, level
Add an outlet directed 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 stream handler. | None |