From 331cd8620bdf2978f02877adeca4db63cdd1acf7 Mon Sep 17 00:00:00 2001 From: Daniel Flassak Date: Wed, 5 Feb 2025 16:30:20 +0100 Subject: [PATCH] add tip to readme --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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)