Logging
taxotagger
¶
setup_logging
¶
Setup logging configuration for the ancestor logger "taxotagger".
Parameters:
-
level(str, default:'INFO') –The log level, use the logging module's log level constants. Valid levels are:
NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL. -
file(str, default:'') –The file to write the log to. If the file is an empty string (by default), the log will not be written to a file. If the file does not exist, it will be created. The log will be written to the file in append mode.
-
to_console(bool, default:True) –Whether to log to the console.