SLF4J Android Logger

SLF4J Android binding.

License

License

Categories

Categories

SLF4J Application Layer Libs Logging
GroupId

GroupId

de.psdev.slf4j-android-logger
ArtifactId

ArtifactId

slf4j-android-logger
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

SLF4J Android Logger
SLF4J Android binding.
Project URL

Project URL

http://psdev.de/slf4j-android-logger/
Project Organization

Project Organization

PSDev
Source Code Management

Source Code Management

https://github.com/PSDev/slf4j-android-logger

Download slf4j-android-logger

How to add to project

<!-- https://jarcasting.com/artifacts/de.psdev.slf4j-android-logger/slf4j-android-logger/ -->
<dependency>
    <groupId>de.psdev.slf4j-android-logger</groupId>
    <artifactId>slf4j-android-logger</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/de.psdev.slf4j-android-logger/slf4j-android-logger/
implementation 'de.psdev.slf4j-android-logger:slf4j-android-logger:1.0.5'
// https://jarcasting.com/artifacts/de.psdev.slf4j-android-logger/slf4j-android-logger/
implementation ("de.psdev.slf4j-android-logger:slf4j-android-logger:1.0.5")
'de.psdev.slf4j-android-logger:slf4j-android-logger:jar:1.0.5'
<dependency org="de.psdev.slf4j-android-logger" name="slf4j-android-logger" rev="1.0.5">
  <artifact name="slf4j-android-logger" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.psdev.slf4j-android-logger', module='slf4j-android-logger', version='1.0.5')
)
libraryDependencies += "de.psdev.slf4j-android-logger" % "slf4j-android-logger" % "1.0.5"
[de.psdev.slf4j-android-logger/slf4j-android-logger "1.0.5"]

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.21

provided (1)

Group / Artifact Type Version
com.google.android : android jar 6.0_r3

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.robolectric : robolectric jar 3.0

Project Modules

There are no modules declared in this project.

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.
de.psdev.slf4j-android-logger

PSDev

Open Source Projects by @hameno

Versions

Version
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0