/slf4j-android-logger

SLF4J Android binding.

Primary LanguageJavaApache License 2.0Apache-2.0

slf4j-android-logger JitPack

This library is based on the official slf4j-android implementation but with some differences. It does not use the classname as the log tag but instead appends it after the message. It also appends the line number and current thread. Configuration of the log tag is done through a properties file (logger.properties).

Configuration

Call AndroidLoggerConfig.init(...)

Gradle

Gradle support is provided via JitPack

Per the JitPack documentation, first add the JitPack repository to your build file

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

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

Next, add the dependency

dependencies {
	compile 'com.github.bleppard:slf4j-android-logger:1.1.0'
}

Credits

This library is based upon the official slf4j-android implementation, and is a branch off of Philip Schiffer's implementation.

License

Copyright 2013-2016 Philip Schiffer

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.