timber-loggly
v1.0.1A Timber tree for asynchronously posting log messages to Loggly.
Usage
- 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));
}
}
- Use Timber API to log an event via
LogglyTree
...
Timber.tag("foo");
Timber.i("hello world");
Download
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.