Loupe - Log - Monitor - Resolve
Loupe / Developer's Guide / For Java / Logging / Using other Logging Frameworks / Developer's Guide - Java - Using Loupe with Logback
In This Topic
    Developer's Guide - Java - Using Loupe with Logback
    In This Topic

    Adding the Loupe Appender for Logback

    Add the following dependency to your pom.xml:

    <dependency>
        <groupId>com.onloupe</groupId>
        <artifactId>loupe-logback-support</artifactId>
        <version><-- desired version --></version>
    </dependency>
    

    Configuring Logback

    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>
    
    See Also