tidy3d.set_logging_file#
- class set_logging_file[source]#
Bases:
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()
.