tidy3d.logging_file(fname, filemode='w', level='debug')

Set a file to write log to, independently from the stdout and stderr output chosen using logging_level().

  • fname (str) – File name to direct the output to.

  • filemode (str, optional) – ‘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 by logging_level().