Issue with Log Printing Format in Allure Report #2049
-
Hello everyone, I'm currently facing an issue with the log printing format in the Allure report after migrating to SLF4J with Log4j2 implementation. I would appreciate any assistance or suggestions to resolve this problem. In SLF4J2 we just use the placeholders - {} and the dymanic values are resolved defaultly. In our project, we use the following method to print log statements in the Allure report: @step("INFO: {0}") For example, if we call logInfo("Value is {}", "sample"), we expect the log message in the Allure report to be displayed as "Value is sample". However, the actual log message shown in the Allure report is "Value is {}". When we expand the statement, we can see the format and argArray details correctly. Our goal is to resolve this issue and achieve the expected result of the log printing in the Allure report in the desired format ("Value is sample"). Input - logInfo("Value is {}", "sample") I would greatly appreciate any insights, suggestions, or possible solutions to address this problem. Thank you in advance for your assistance. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I would suggest you use |
Beta Was this translation helpful? Give feedback.
I would suggest you use
Allure.step()
API instead of@Step
annotation. That way, you'll get full control over generated step names.