SLF4J Android Logger

Additional

Language
Java
Version
1.0.4 (Jul 27, 2014)
Created
Mar 28, 2013
Updated
Apr 7, 2018
Owner
PSDev
Contributors
Philip Schiffer (hameno)
philipa
2
Activity
Badge
Generate
Download
Source code

Advertising

slf4j-android-logger

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

Create a logger.properties file in the classpath and configure it.

Available properties:

Name: de.psdev.slf4j.android.logger.logTagDescription: The log tag to use when logging to Androids logger. Maximum 23 chars!

Name: de.psdev.slf4j.android.logger.defaultLogLevelValues:TRACE|DEBUG|INFO|WARN|ERROR

Example:

de.psdev.slf4j.android.logger.logTag=MyAwesomeApp
de.psdev.slf4j.android.logger.defaultLogLevel=DEBUG

Download

Download the latest JAR or grab via Maven:

<dependency>
  <groupId>de.psdev.slf4j-android-logger</groupId>
  <artifactId>slf4j-android-logger</artifactId>
  <version>1.0.5</version>
</dependency>

Credits

This library is based upon the official slf4j-android implementation.

Contributors

Thank you to all the contributors of this project, namely:

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.