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
).
Call AndroidLoggerConfig.init(...)
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'
}
This library is based upon the official slf4j-android implementation, and is a branch off of Philip Schiffer's implementation.
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.