add_file_handler#
- OslLogger.add_file_handler(logfile_name: str = 'pyOptislang.log', loglevel: str = 'DEBUG') None #
Add a file handler (output file) to the logger.
- Parameters:
- logger: logging.Logger
Logger for creating the output file.
- logfile_name: str, optional
Name of the output file. The default is
FILE_NAME
.- loglevel
str
,optional
Level of logging. The default is
LOG_LEVEL
.