Skip to content

Commit eda1ec2

Browse files
xixuejmssonicbld
authored andcommitted
Add log_format and log_date_format to pytest.ini for improved logging configuration (sonic-net#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
1 parent 6673a1e commit eda1ec2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ markers:
5151
log_cli_format: %(asctime)s %(funcNamewithModule)-40.40s L%(lineno)-.4d %(levelname)-7s| %(message)s
5252
log_file_format: %(asctime)s %(funcNamewithModule)-40.40s L%(lineno)-.4d %(levelname)-7s| %(message)s
5353
log_file_date_format: %d/%m/%Y %H:%M:%S
54+
log_format: %(asctime)s %(funcNamewithModule)-40.40s L%(lineno)-.4d %(levelname)-7s| %(message)s
55+
log_date_format: %d/%m/%Y %H:%M:%S

0 commit comments

Comments
 (0)