Loupe - Log - Monitor - Resolve
Loupe / Developer's Guide / For Java / Developer's Guide - Java - Logging Introduction
In This Topic
    Developer's Guide - Java - Logging Introduction
    In This Topic

    Loupe is designed to work well:

     Getting Started with Logging to Loupe

    Since most Java applications and packages already integrate with Log4j2 for logging, we recommend adding the Loupe Appender for Log4j2 as your first step to capturing log data with Loupe.  Once that's done, you can choose to either do all of your logging to Log4j2 or go direct to Loupe's API.  If you know you are using another supported logging framework we recommend adding the relevant appenders for them as well.  For a list of supported frameworks, see Developer's Guide - Java - Using Loupe with other Logging Frameworks.

    The main advantage of Loupe's API comes when logging exceptions in exception handlers.  The specialized recordException methods and options on the error and critical logging methods which let you easily tell Loupe what class & method to attribute the exception to.  For more information, see Developer's Guide - Java - Logging Directly to Loupe.

     Effective Application Logging

    To get the most out of logging in your application it isn't about either throwing a lot of log statements all over the code, or just sprinkling in a few when there's a problem.  Effective logging will dramatically reduce your support and maintenance costs by providing the right data at the right time - information on what's happening in production with real customers and users. 


    See Also