aurzenligl / pytest-logger

Pytest plugin configuring handlers for loggers from Python logging module.
MIT License
35 stars 11 forks source link

Format from pytest.ini is not used #31

Closed skelutten closed 7 months ago

skelutten commented 2 years ago

When I have added a log_format to pytest.ini I would have expected that format to be used instead of pytest-loggers format. I can't see any info on that in the documentation.

aurzenligl commented 8 months ago

@skelutten, sorry for monumental delay.

I assume you mean situation when formatter is not set explicitly via pytest-logger api, and the DefaultFormatter is used. In such case you'd prefer to reuse the pytest's "log_format" instead. Sounds like a good idea, let me know if you'd like to propose a pull-request.

aurzenligl commented 7 months ago

Closing due to inactivity