Hello Community,
I’m trying desperately to log different variables to a file.
I looked up logging in the documentation and found the logback.xml should be the key.
I added an Appender as mentioned in the doc:
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>../gatling.log</file>
<append>true</append>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="FILE" />
</root>
And in my simulation:
`
val logger = Logger(“SomeLogger”)
.exec(session => {
logger.info(“Test”)
session
})
`
But I’m not getting anything. Even when I uncomment those two lines I’m not getting anything.
`
`
Any help appretiated !
Best regards,
Stephan