{"repo":"Hakky54/log-captor","free":true,"listed":false,"github":"https://github.com/Hakky54/log-captor","clone":"git clone https://github.com/Hakky54/log-captor.git","description":"🎯 LogCaptor captures log entries for unit and integration testing purposes","language":"Java","stars":432,"topics":["testing","logging","java","lombok","log4j","log4j2","slf4j","jboss","flogger","junit"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"LogCaptor Install library with: Install with maven Install with Gradle Install with Scala SBT Install with Apache Ivy Table of contents 1. Introduction - Advantages - Supported Java versions - Tested Logging libraries - Compatibility 2. Usage - Capture logs - Reuse LogCaptor for multiple tests - Capture logs for enabled logs only - Capture exceptions within logs - Capture Managed Diagnostic Context (MDC) - Disable any logs for specific class - Disable console output - Capturing logs across different threads - Returnable values from LogCaptor 3. Known issues - Using Log Captor alongside with other logging libraries - Capturing logs of static inner classes - Mixing up different classloaders 4. Contributing 5. License Introduction LogCaptor is a library which will enable you to easily capture logging entries for unit and integration testing purposes without the need of any custom Junit extentions, mocking or any other complex setup. It is plug & play, so you can start using it right away. Do you want to capture the console output? Please have a look at ConsoleCaptor. Advantages - No mocking required - No custom JUnit extension required - Plug & play Supported Java versions - Java 8 - Java 11+ Tested Logging libraries - SLF4J - Logback - Java Util Logging - Apache Log4j - Apache Log4j2 - Log4j with Lombok - Log4j2 with Lombok - SLFJ4 with Lombok - JBossLog with Lombok - Java Util Logging with Lombok - Spring Boot Starter Log4j2 - Google Flogger - Sude See the unit test LogCaptorS","default_branch":null,"files":null,"tree":[],"storefront":"/r/Hakky54","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Hakky54/log-captor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}