id 6dZddlZddlZddlmZddlmZejeZe ej dZ e de dDZejejdZd Zdefd ed eed ed dfdZdS)zTop-level module for Flake8. This module - initializes logging for the command-line tool - tracks the version of the package - provides a way to configure logging for the command-line tool .. autofunction:: flake8.configure_logging N)Optional)Typez5.0.4c#\K|]'}|t|V(dS)N)isdigitint).0is D/opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/__init__.py r s5OOA199;;OQOOOOOO.)zO%(name)-25s %(processName)-11s %(relativeCreated)6d %(levelname)-8s %(message)s verbosityfilename logformatreturnc|dkrdSt|tt}t|}|r|dvr$tt|pd}t j}n|}t j}||}|t j |t |t |t d|tdS)aIConfigure logging for flake8. :param verbosity: How verbose to be in logging information. :param filename: Name of the file to append log information to. If ``None`` this will log to ``sys.stderr``. If the name is "stdout" or "stderr" this will log to the appropriate stream. rN)stderrstdoutrz/Added a %s logging handler to logger root at %s)minmax_VERBOSITY_TO_LOG_LEVELgetattrsyslogging StreamHandler FileHandler setFormatter FormatterLOG addHandlersetLeveldebug__name__)rrr log_levelfileobj handler_clshandlers r configure_loggingr*$sA~~Is#:;;<r8s   g!!"w"$$%%% 5OO):):3)?)?OOOOO|} " #"""sm"" """"""r