binaryninja.log.log_to_file

log_to_file(min_level, path, append=False)[source]

log_to_file redirects minimum log level to a file named path, optionally appending rather than overwriting.

Parameters
  • min_level (int) – minimum level to log to

  • path (str) – path to log to

  • append (bool) – optional flag for specifying appending. True = append, False = overwrite.

Return type

None