diff --git a/README.md b/README.md index 0927e60..241b912 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,6 @@ Simple assertions for log messages. See [Examples](#examples). -> [!NOTE] -> log-capture asserts evaluated log statements. That means it depends on a logging implementation (*logback*), but works with any logging facade (*slf4j* and others) - ```java var name="world"; log.info("hello {}", name); @@ -32,6 +29,12 @@ logCapture.assertLoggedInOrder( ); ``` +> [!TIP] +> **Advantages of log-capture:** +> +> * log-capture does not capture console output (unlinke [OutputCaptureExtension](https://docs.spring.io/spring-boot/api/java/org/springframework/boot/test/system/OutputCaptureExtension.html) for example). This is why it can assert logs independently from the configured log-appender. +> * log-capture asserts evaluated log statements. That means it depends on a logging implementation (*logback*), but works with any logging facade (like *slf4j* and others). + **Table of Contents** * [Usage](#usage)