From eda1ec2e2536a2c5dc3efebc1133aa4ee25ea8e6 Mon Sep 17 00:00:00 2001 From: xixuej Date: Mon, 11 Aug 2025 18:56:13 +0800 Subject: [PATCH] Add log_format and log_date_format to pytest.ini for improved logging configuration (#19965) Currently we have logging logs attached to allure report but these logs do not have date and time information and it makes debugging difficult when we need to align the date and time logs from allure with other logs. This change is to add customized format for the log messages that will be attached to allure report --- tests/pytest.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/pytest.ini b/tests/pytest.ini index 6002a0d29da..e6f47d48adc 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -51,3 +51,5 @@ markers: log_cli_format: %(asctime)s %(funcNamewithModule)-40.40s L%(lineno)-.4d %(levelname)-7s| %(message)s log_file_format: %(asctime)s %(funcNamewithModule)-40.40s L%(lineno)-.4d %(levelname)-7s| %(message)s log_file_date_format: %d/%m/%Y %H:%M:%S +log_format: %(asctime)s %(funcNamewithModule)-40.40s L%(lineno)-.4d %(levelname)-7s| %(message)s +log_date_format: %d/%m/%Y %H:%M:%S