tidy3d.set_logging_file
tidy3d.set_logging_file#
- tidy3d.set_logging_file(fname: str, filemode: str = 'w', level: Union[int, Literal['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']] = 'WARNING') None #
Set a file to write log to, independently from the stdout and stderr output chosen using
set_logging_level()
.- Parameters
fname (str) – Path to file to direct the output to.
filemode (str) – ‘w’ or ‘a’, defining if the file should be overwritten or appended.
level (str) – One of
{'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'}
. This is set for the file independently of the console output level set byset_logging_level()
.