|
| 1 | +# Stubs for coloredlogs (Python 3.7) |
| 2 | +# |
| 3 | +# NOTE: This dynamically typed stub was automatically generated by stubgen. |
| 4 | + |
| 5 | +import logging |
| 6 | +from typing import Any, Optional |
| 7 | + |
| 8 | +WINDOWS: Any |
| 9 | +NEED_COLORAMA = WINDOWS |
| 10 | +DEFAULT_LOG_LEVEL: Any |
| 11 | +DEFAULT_LOG_FORMAT: str |
| 12 | +DEFAULT_DATE_FORMAT: str |
| 13 | +CHROOT_FILES: Any |
| 14 | +CAN_USE_BOLD_FONT: Any |
| 15 | +DEFAULT_FIELD_STYLES: Any |
| 16 | +DEFAULT_LEVEL_STYLES: Any |
| 17 | +DEFAULT_FORMAT_STYLE: str |
| 18 | +FORMAT_STYLE_PATTERNS: Any |
| 19 | + |
| 20 | +def auto_install() -> None: ... |
| 21 | +def install(level: Optional[Any] = ..., **kw: Any): ... |
| 22 | +def check_style(value: Any): ... |
| 23 | +def increase_verbosity() -> None: ... |
| 24 | +def decrease_verbosity() -> None: ... |
| 25 | +def is_verbose(): ... |
| 26 | +def get_level(): ... |
| 27 | +def set_level(level: Any) -> None: ... |
| 28 | +def adjust_level(logger: Any, level: Any) -> None: ... |
| 29 | +def find_defined_levels(): ... |
| 30 | +def level_to_number(value: Any): ... |
| 31 | +def find_level_aliases(): ... |
| 32 | +def parse_encoded_styles(text: Any, normalize_key: Optional[Any] = ...): ... |
| 33 | +def find_hostname(use_chroot: bool = ...): ... |
| 34 | +def find_program_name(): ... |
| 35 | +def replace_handler(logger: Any, match_handler: Any, reconfigure: Any): ... |
| 36 | +def find_handler(logger: Any, match_handler: Any): ... |
| 37 | +def match_stream_handler(handler: Any, streams: Any = ...): ... |
| 38 | +def walk_propagation_tree(logger: Any) -> None: ... |
| 39 | + |
| 40 | +class BasicFormatter(logging.Formatter): |
| 41 | + def formatTime(self, record: Any, datefmt: Optional[Any] = ...): ... |
| 42 | + |
| 43 | +class ColoredFormatter(BasicFormatter): |
| 44 | + nn: Any = ... |
| 45 | + log_record_factory: Any = ... |
| 46 | + level_styles: Any = ... |
| 47 | + field_styles: Any = ... |
| 48 | + def __init__(self, fmt: Optional[Any] = ..., datefmt: Optional[Any] = ..., level_styles: Optional[Any] = ..., field_styles: Optional[Any] = ..., style: Any = ...) -> None: ... |
| 49 | + def colorize_format(self, fmt: Any, style: Any = ...): ... |
| 50 | + def format(self, record: Any): ... |
| 51 | + |
| 52 | +class Empty: ... |
| 53 | + |
| 54 | +class HostNameFilter(logging.Filter): |
| 55 | + @classmethod |
| 56 | + def install(cls, handler: Any, fmt: Optional[Any] = ..., use_chroot: bool = ..., style: Any = ...): ... |
| 57 | + hostname: Any = ... |
| 58 | + def __init__(self, use_chroot: bool = ...) -> None: ... |
| 59 | + def filter(self, record: Any): ... |
| 60 | + |
| 61 | +class ProgramNameFilter(logging.Filter): |
| 62 | + @classmethod |
| 63 | + def install(cls, handler: Any, fmt: Any, programname: Optional[Any] = ..., style: Any = ...): ... |
| 64 | + programname: Any = ... |
| 65 | + def __init__(self, programname: Optional[Any] = ...) -> None: ... |
| 66 | + def filter(self, record: Any): ... |
| 67 | + |
| 68 | +class StandardErrorHandler(logging.StreamHandler): |
| 69 | + def __init__(self, level: Any = ...) -> None: ... |
| 70 | + @property |
| 71 | + def stream(self): ... |
| 72 | + |
| 73 | +class FormatStringParser: |
| 74 | + style: Any = ... |
| 75 | + capturing_pattern: Any = ... |
| 76 | + raw_pattern: Any = ... |
| 77 | + tokenize_pattern: Any = ... |
| 78 | + name_pattern: Any = ... |
| 79 | + def __init__(self, style: Any = ...) -> None: ... |
| 80 | + def contains_field(self, format_string: Any, field_name: Any): ... |
| 81 | + def get_field_names(self, format_string: Any): ... |
| 82 | + def get_grouped_pairs(self, format_string: Any): ... |
| 83 | + def get_pairs(self, format_string: Any) -> None: ... |
| 84 | + def get_pattern(self, field_name: Any): ... |
| 85 | + def get_tokens(self, format_string: Any): ... |
| 86 | + |
| 87 | +class FormatStringToken: ... |
| 88 | + |
| 89 | +class NameNormalizer: |
| 90 | + aliases: Any = ... |
| 91 | + def __init__(self) -> None: ... |
| 92 | + def normalize_name(self, name: Any): ... |
| 93 | + def normalize_keys(self, value: Any): ... |
| 94 | + def get(self, normalized_dict: Any, name: Any): ... |
0 commit comments