YouTubeDownloader v1.1.2
YouTube content downloader
Loading...
Searching...
No Matches
colored_log.py File Reference

Logging formatter for colored log in terminal. More...

Go to the source code of this file.

Classes

class  ColorFormatter
 Logging formatter that colors logging messages depending on their level. More...
 

Namespaces

namespace  Source
 
namespace  Source.Util
 
namespace  Source.Util.colored_log
 

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"
 

Detailed Description

Logging formatter for colored log in terminal.


Definition in file colored_log.py.