loggly/timber-loggly


A Timber tree that posts to Loggly https://www.loggly.com/docs/android-logs/

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.tony19:timber-loggly:timber-loggly-1.0.2'
	}
	dependencies {
		implementation("com.github.tony19:timber-loggly:timber-loggly-1.0.2")
	}
	<dependency>
	    <groupId>com.github.tony19</groupId>
	    <artifactId>timber-loggly</artifactId>
	    <version>timber-loggly-1.0.2</version>
	</dependency>

                            
    libraryDependencies += "com.github.tony19" % "timber-loggly" % "timber-loggly-1.0.2"
        
        

                            
    :dependencies [[com.github.tony19/timber-loggly "timber-loggly-1.0.2"]]
        
        

Readme


<h1>timber-loggly <a href='https://tony19.ci.cloudbees.com/job/timber-loggly/'><a href='https://tony19.ci.cloudbees.com/job/timber-loggly/job/timber-loggly-SNAPSHOT/'><img src='https://tony19.ci.cloudbees.com/buildStatus/icon?job=timber-loggly/timber-loggly-SNAPSHOT'></a></a></h1> <sup>v1.0.1</sup>

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));
     }
    }
    
  2. 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.