I am very new at logback. I am using logback.xml configuration in my project, that has consoleAppender that use som pattern like
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n</pattern>
</encoder>
I can see in terminal, that logging pattern is working. But i want to test it in unit tests (like Assertions.assertEqual…). Not only log message, but whole message including time, level, logger, etc (like in pattern, to test it). The point is that i want to test that pattern is working. In future i need to use mask for sensitive data and the goal is to test masking.
Thank you!
I have no idea how to test it.