import logging | |
from functools import partial, partialmethod | |
import pytest | |
logging.TRACE = 5 # type: ignore | |
logging.addLevelName(logging.TRACE, "TRACE") # type: ignore | |
logging.Logger.trace = partialmethod(logging.Logger.log, logging.TRACE) # type: ignore | |
logging.trace = partial(logging.log, logging.TRACE) # type: ignore | |
def logger() -> logging.Logger: | |
return logging.getLogger("ui-tests") | |