Log Levels for SSH In SSH, the LogLevel option allows you to control the level of logging information generated by the SSH client and server. There are several log levels you can use to adjust the verbosity of SSH logging. Here are the most commonly used log levels: QUIET: Suppresses all log messages, except for fatal errors. It provides the least amount of information. FATAL: Logs only fatal errors, indicating severe issues that may prevent the SSH session from being established.
a custom logger for Python let’s tune the default logger a bit so he write nice and colored messages. Screenshot config.py a little config File … cat <<'EOF'> config.py LOGGER_MAX_FILE_LENGTH = 10 EOF src/logger.py the logger code in the ‘src’ Folder mkdir src cat <<'EOF'> src/logger.py import logging import datetime import sys from config import * if isinstance(LOGGER_MAX_FILE_LENGTH, int): LOGGER_MAX_FILE_LENGTH = str(LOGGER_MAX_FILE_LENGTH) def get_now() -> str: # # choose your format # current_time = datetime.