If the log entry comes from structlog, it's unpackaged and processed.
(self, capsys)
| 1364 | assert isinstance(eds[0]["_record"], logging.LogRecord) |
| 1365 | |
| 1366 | def test_native_logger(self, capsys): |
| 1367 | """ |
| 1368 | If the log entry comes from structlog, it's unpackaged and processed. |
| 1369 | """ |
| 1370 | logger = logging.getLogger() |
| 1371 | eds = configure_logging(None, logger=logger) |
| 1372 | |
| 1373 | get_logger().warning("foo") |
| 1374 | |
| 1375 | assert ( |
| 1376 | "", |
| 1377 | "[warning ] foo [in test_native_logger]\n", |
| 1378 | ) == capsys.readouterr() |
| 1379 | assert eds[0]["_from_structlog"] is True |
| 1380 | assert isinstance(eds[0]["_record"], logging.LogRecord) |
| 1381 | |
| 1382 | def test_foreign_pre_chain_filter_by_level(self, capsys): |
| 1383 | """ |
nothing calls this directly
no test coverage detected