How to use Paramiko logging?
Paramiko names its loggers, so simply:
import logging
import paramiko
logging.basicConfig()
logging.getLogger("paramiko").setLevel(logging.WARNING) # for example
See the logging cookbook for some more examples.
You can also use log_to_file
from paramiko.util
to log directly to a file.
paramiko.util.log_to_file("<log_file_path>", level = "WARN")