Add the following dependency to your pom.xml:
<dependency> <groupId>com.onloupe</groupId> <artifactId>loupe-logback-support</artifactId> <version><-- desired version --></version> </dependency>
Adding Loupe to Logback is done through the Logback configuration file. Add the following appender to logback.xml, scoped in accordance with your choosing.
<appender name="loupe" class="com.onloupe.appenders.logback.LoupeLogbackAppender"/>
A complete minimal example is:
<configuration> <appender name="LoupeAppender" class="com.onloupe.appenders.logback.LoupeLogbackAppender"/> <root level="debug"> <appender-ref ref="LoupeAppender"/> </root> </configuration>