downstream: logger: reuse logger_or_root, dedupe optional-logger-arg pattern

This commit is contained in:
Andrej730
2026-07-22 16:14:48 +05:00
parent d45174066f
commit 32f2dfd294
5 changed files with 72 additions and 17 deletions
@@ -1074,6 +1074,52 @@ class line_segment:
def size(self): ...
def swap(self, v): ...
class log_message:
code: Any
instance: Any
message: Any
product: Any
severity: Any
timestamp: Any
def __init__(self, *args): ...
@property
def severity_string(self): ...
def to_dict(self): ...
def to_tuple(self): ...
class logger:
FMT_PLAIN: Literal[0]
FMT_JSON: Literal[1]
FMT_INMEMORY: Literal[2]
LOG_PERF: Literal[0]
LOG_DEBUG: Literal[1]
LOG_NOTICE: Literal[2]
LOG_WARNING: Literal[3]
LOG_ERROR: Literal[4]
@staticmethod
def root() -> logger: ...
def append(self, other): ...
def count(self, code): ...
def clear(self): ...
def error(self, *args): ...
def get_log(self): ...
def max_severity(self): ...
def message(self, *args): ...
def notice(self, *args): ...
def output_format(self, *args): ...
def print_performance_stats(self): ...
def print_performance_stats_on_element(self, *args): ...
def progress_bar(self, progress): ...
def set_output(self, *args): ...
def set_product(self, *args): ...
def status(self, message, new_line=True): ...
def verbosity(self, *args): ...
def warning(self, *args): ...
def log_messages(self) -> tuple[log_message, ...]: ...
class loft:
axis: Any
def calc_hash(self): ...