Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

log4j appender for javabrake

Build Status

Installation

Gradle:

compile 'io.airbrake:log4javabrake:0.1.5'

Maven:

<dependency>
  <groupId>io.airbrake</groupId>
  <artifactId>log4javabrake</artifactId>
  <version>0.1.5</version>
</dependency>

Ivy:

<dependency org='io.airbrake' name='log4javabrake' rev='0.1.5'>
  <artifact name='log4javabrake' ext='pom'></artifact>
</dependency>

Configuration

Using config:

log4j.rootLogger=INFO, stdout, airbrake

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d,%p] [%c{1}.%M:%L] %m%n

log4j.appender.airbrake=io.airbrake.log4javabrake.AirbrakeAppender
log4j.appender.airbrake.projectId=12345
log4j.appender.airbrake.projectKey=FIXME
log4j.appender.airbrake.env=production

Using Java:

import org.apache.log4j.Logger;
import io.airbrake.log4javabrake.AirbrakeAppender;

int projectId = 12345;
String projectKey = "FIXME";
Logger.getRootLogger().addAppender(new AirbrakeAppender(projectId, projectKey));

About

log4j appender for Airbrake

Topics

Resources

License

Packages

No packages published

Languages