Giter VIP home page Giter VIP logo

iopipe-java-logger-log4j2's Introduction

IOpipe Logger Adapter for log4j2 (Java)

Download CircleCIJavadocs

Support for Log4j2 using the IOpipe Logger Plugin. This plugin is to be used with the IOpipe Java Agent.

It is licensed under the Apache 2.0.

Building With The Adapter

Your pom.xml file may be modified to include the following dependency:

<dependency>
  <groupId>com.iopipe</groupId>
  <artifactId>iopipe-logger-log4j2</artifactId>
</dependency>

Due to the way shading works, you will be required to always use the Log4j2 Transformer if you wish to support multiple appenders within your project and its dependencies. Not doing so may result in not being able to use multiple various plugins with Log4j2.

Configuration

Configuring your project to use this adapter for Log4j2 will be the same as configuring other appenders as specified in the configuration documentation.

Using the following as an example log4j2.xml resource at a very basic level to report to IOpipe (the error level may be modified accordingly as needed):

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="error">
  <Appenders>
    <IOpipe name="IOpipe">
    </IOpipe>
  </Appenders>
  <Loggers>
    <Root level="error">
      <AppenderRef ref="IOpipe" />
    </Root>
  </Loggers>
</Configuration>

Once you’re setup, you will need to configure IOpipe to enable the logging plugin. You can do this by setting the IOPIPE_LOGGER_ENABLED environment variable to true in the AWS Lambda configuration.

iopipe-java-logger-log4j2's People

Contributors

adjohn avatar sullis avatar xerthesquirrel avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.