项目作者: PSDev

项目描述 :
SLF4J Android binding.
高级语言: Java
项目地址: git://github.com/PSDev/slf4j-android-logger.git
创建时间: 2013-03-28T15:35:17Z
项目社区:https://github.com/PSDev/slf4j-android-logger

开源协议:Apache License 2.0

下载


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:

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

Download

Download the latest JAR or grab via Maven:

  1. <dependency>
  2. <groupId>de.psdev.slf4j-android-logger</groupId>
  3. <artifactId>slf4j-android-logger</artifactId>
  4. <version>1.0.5</version>
  5. </dependency>

Credits

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

Contributors

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

License

  1. Copyright 2013-2016 Philip Schiffer
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.