Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 2.48 KB

README.md

File metadata and controls

71 lines (49 loc) · 2.48 KB

slf4j-android-logger Build Status Maven Central

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.logTag
Description: The log tag to use when logging to Androids logger. Maximum 23 chars!

Name: de.psdev.slf4j.android.logger.defaultLogLevel
Values: 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.