nlcpy.logging.set_file_handler

nlcpy.logging.set_file_handler(logger_name, filename, mode='a', encoding=None, delay=False, level=20, format=None)[source]

Sets FileHandler to the specified logger.

Parameters
logger_namestr

Logger name

filenamestr

File name to be logged.

modemode

File access mode.

encodingencoding

Encoding.

delaybool

Delay mode.

levellevel

Logging level.

formatformat

Logging format.

Returns
loggerlogger

Logger that corresponds to the logger name.