Testing logs without using logback?

I'm looking to do something like this but I don't want to include logback dependency. Any recs on how to unit test or integration test logging statements? https://stackoverflow.com/questions/4650222/what-is-the-best-way-to-unit-test-slf4j-log-messages
Stack Overflow
What is the best way to unit-test SLF4J log messages?
I'm using slf4j and I want to unit test my code to make sure that warn/error log messages are generated under certain conditions. I'd rather these be strict unit tests, so I'd prefer not to have to...
1 Reply
JavaBot
JavaBot3w ago
This post has been reserved for your question.
Hey @Kale Vivi! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?