GithubHelp home page GithubHelp logo

deliverydotcom / rollbar-log4j2-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tapstream/rollbar-logback

0.0 33.0 0.0 631 KB

Logback appender for integration with the Rollbar service.

License: MIT License

Java 100.00%

rollbar-log4j2-java's Introduction

Rollbar Logback

Build Status

This is a fork of the Tapstream's Rollbar Logback Appender created on June 10th, 2016 for use with the error aggregation service Rollbar. You will need a Rollbar account: sign up for an account here.

Logback

<Rollbar name="rollbar" apikey="[YOUR APIKEY HERE]" environment="dev" system="laundry">
    <apiKey></apiKey>
    <environment>local</environment>
</Rollbar>

<root level="debug">
	<appender-ref ref="rollbar"/>
</root>

Appender parameters:

Providing the API key externally

You can choose to set the API key by using an environment variable. This way your API key stays out of your code and your source control repository.

Create the environment variable ROLLBAR_LOGBACK_API_KEY and set its value to your API key. This value will override the value set in logback.xml (if set).

Custom MDC parameters

Any MDC values with keys that do not start with RollbarFilter.REQUEST_PREFIX will be added as custom parameters to the Rollbar item request.

Servlet Filter

Located at com.tapstream.rollbar.logback.RollbarFilter is a J2EE servlet filter that will populate the request portion of the Rollbar item from a ServletRequest. The filter will include:

  • Remote IP address
  • User agent
  • Method
  • URL
  • Query String
  • Headers
  • Parameters

Acknowledgements

This library has been inspired by:

rollbar-log4j2-java's People

Contributors

nsitarz avatar rafael-munoz avatar ahaid avatar connorlanigan avatar timasjov avatar lawrenberg avatar microsby0 avatar welps avatar

Watchers

Katie Filbert avatar  avatar James Cloos avatar Ben Chelli avatar Bruno Barbieri avatar Garth avatar  avatar Herman Lau avatar  avatar  avatar  avatar  avatar Jesse Sessler avatar haiyang zhang avatar Henry S avatar Hannah avatar  avatar Ricky Biala avatar  avatar Jen Surman avatar mike avatar  avatar  avatar  avatar  avatar Adrian Brown avatar Curtis David avatar Jimmy Timmons avatar Christopher Howard avatar  avatar  avatar Chris Maher avatar Steve 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.