Skip to content

outware/timber-loggly

 
 

Repository files navigation

timber-loggly

v1.0.1

A Timber tree for asynchronously posting log messages to Loggly.

Usage

  1. Plant a LogglyTree with your authorization token from Loggly.
import android.app.Application;
import com.github.tony19.timber.loggly.LogglyTree;
import timber.log.Timber;

public class ExampleApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        final String LOGGLY_TOKEN = /* your loggly token */;
        Timber.plant(new LogglyTree(LOGGLY_TOKEN));
    }
}
  1. Use Timber API to log an event via LogglyTree...
Timber.tag("foo");
Timber.i("hello world");

Download

timber-loggly-1.0.1.jar

Gradle

compile 'com.github.tony19:timber-loggly:1.0.1'
compile 'com.squareup.retrofit:retrofit:1.9.0'

Maven

<dependency>
  <groupId>com.github.tony19</groupId>
  <artifactId>timber-loggly</artifactId>
  <version>1.0.1</version>
</dependency>
<dependency>
  <groupId>com.squareup.retrofit</groupId>
  <artifactId>retrofit</artifactId>
  <version>1.9.0</version>
</dependency>

Snapshots of the development version are available in Sonatype's snapshots repository.

Packages

No packages published

Languages

  • Java 99.0%
  • Shell 1.0%