YouTubeDownloader v1.1.2
YouTube content downloader
|
Classes | |
class | ColorFormatter |
Logging formatter that colors logging messages depending on their level. More... | |
Functions | |
str | get_format (bool line_no=False, bool threads=False) |
Get the configurable log format string. | |
None | init_console_logging (int level, bool threads=False) |
Initializes logging for console output. | |
Variables | |
log = logging.getLogger(__name__) | |
str | S_LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S" |
str | S_LOG_MSG_FORMAT_W_LINENO_W_THREADS = "%(asctime)s [%(name)s:%(lineno)d][%(threadName)s][%(levelname)s] %(message)s" |
str | S_LOG_MSG_FORMAT_W_LINENO_WO_THREADS = "%(asctime)s [%(name)s:%(lineno)d][%(levelname)s] %(message)s" |
str | S_LOG_MSG_FORMAT_WO_LINENO_W_THREADS = "%(asctime)s [%(name)s][%(threadName)s][%(levelname)s] %(message)s" |
str | S_LOG_MSG_FORMAT_WO_LINENO_WO_THREADS = "%(asctime)s [%(name)s][%(levelname)s] %(message)s" |
str get_format | ( | bool | line_no = False, |
bool | threads = False ) |
Get the configurable log format string.
line_no | : include line number in log string |
threads | : include thread name in log string |
Definition at line 32 of file colored_log.py.
None init_console_logging | ( | int | level, |
bool | threads = False ) |
Initializes logging for console output.
Line numbers are active in DEBUG level or lower.
level | : root log level |
threads | : include thread names in log strings |
Definition at line 52 of file colored_log.py.
log = logging.getLogger(__name__) |
Definition at line 118 of file colored_log.py.
str S_LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S" |
Definition at line 29 of file colored_log.py.
str S_LOG_MSG_FORMAT_W_LINENO_W_THREADS = "%(asctime)s [%(name)s:%(lineno)d][%(threadName)s][%(levelname)s] %(message)s" |
Definition at line 28 of file colored_log.py.
str S_LOG_MSG_FORMAT_W_LINENO_WO_THREADS = "%(asctime)s [%(name)s:%(lineno)d][%(levelname)s] %(message)s" |
Definition at line 27 of file colored_log.py.
str S_LOG_MSG_FORMAT_WO_LINENO_W_THREADS = "%(asctime)s [%(name)s][%(threadName)s][%(levelname)s] %(message)s" |
Definition at line 26 of file colored_log.py.
str S_LOG_MSG_FORMAT_WO_LINENO_WO_THREADS = "%(asctime)s [%(name)s][%(levelname)s] %(message)s" |
Definition at line 25 of file colored_log.py.