MCPcopy Create free account
hub / github.com/apify/crawlee-python / get_log_record

Function get_log_record

tests/unit/test_log_config.py:11–20  ·  view source on GitHub ↗
(level: int, msg: str, exc_info: logging._SysExcInfoType | None = None)

Source from the content-addressed store, hash-verified

9
10
11def get_log_record(level: int, msg: str, exc_info: logging._SysExcInfoType | None = None) -> logging.LogRecord:
12 return logging.LogRecord(
13 name='test',
14 level=level,
15 pathname=__file__,
16 lineno=0,
17 msg=msg,
18 args=(),
19 exc_info=exc_info,
20 )
21
22
23@pytest.mark.parametrize(

Callers 3

test_formatted_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected