beamlime.logging.providers.initialize_file_handler#
- beamlime.logging.providers.initialize_file_handler(logger, file_handler)[source]#
Add a file handler to the
logger
. It creates the directory atdir_path
if it does not exist. File name is automatically created.To adjust file name with different prefix or extension, see
create_log_file_path
.- Return type:
logging.providers.FileHandlerConfigured
(bool
)