Skip to content


Repository files navigation

logback appender for javabrake

Build Status


logback is a logging Middleware in Java for Airbrake.



compile 'io.airbrake:logback:0.1.2'




<dependency org='io.airbrake' name='logback' rev='0.1.2'>
  <artifact name='logback' ext='pom'></artifact>


If you want to send the error logs to Airbrake, you need to have following lines in logback.xml. Add this file in the resources folder. This is the main file for logback configuration. and contains information about log levels, log appenders.

  <appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>

  <appender name="Airbrake" class="io.airbrake.logback.AirbrakeAppender">
    <filter class="ch.qos.logback.classic.filter.ThresholdFilter">

  <root level="INFO">
    <appender-ref ref="Console" />
    <appender-ref ref="Airbrake" />

Error Logging

import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.Logger;

Logger logger = ((ch.qos.logback.classic.Logger))LoggerFactory.getLogger("Name");

try {
} catch (IOException e) {

Notifier release instrucitons

A note on Java version

Make sure you build and release this notifier with open-jdk, one way to manage your local java version is using asdf. You can install this tool via homebrew:

brew install asdf

Then install open-jdk-'mention version here' and set it as JAVA home before running any of the ./gradlew commands:

asdf plugin add java
asdf install java openjdk-'mention version here'
export JAVA_HOME=$HOME/.asdf/installs/java/openjdk-'mention version here'

Building and Releasing

./gradlew build

Upload to Maven Central:

./gradlew publish

To release the deployment to maven central repository:

Usefull links: