log_setup
- lib.logger.log_setup(loglevel, log_file: str, command: str, is_gui: bool = False) None
Set up logging for Faceswap.
Sets up the root logger, the formatting for the crash logger and the file logger, and sets up the crash, file and stream log handlers.
- Parameters:
loglevel – The requested log level that Faceswap should be run at.
log_file (str) – The location of the log file to write Faceswap’s log to
command (str) – The Faceswap command that is being run. Used to dictate whether the log file should have “_gui” appended to the filename or not.
is_gui (bool) – Whether Faceswap is running in the GUI or not. Dictates where the stream handler should output messages to. Default:
False
- Return type:
None