All Projects → patrickfav → slf4j-timber

patrickfav / slf4j-timber

Licence: Apache-2.0 license
SLF4J binding for Timber - a logger with a small, extensible API which provides utility on top of Android's normal Log class.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to slf4j-timber

Logger
✔️ Simple, pretty and powerful logger for android
Stars: ✭ 13,093 (+65365%)
Mutual labels:  logcat, timber
BOBBIN
Revolutionary high-performance Groovy/Java Slf4j logger
Stars: ✭ 17 (-15%)
Mutual labels:  slf4j, slf4j-binding
slf4j-timber
SLF4J binding for Jake Wharton's Timber Android logging library
Stars: ✭ 44 (+120%)
Mutual labels:  slf4j, timber
errorprone-slf4j
An Error Prone plugin for SLF4J
Stars: ✭ 26 (+30%)
Mutual labels:  slf4j
Scribe
The fastest logging library in the world. Built from scratch in Scala and programmatically configurable.
Stars: ✭ 304 (+1420%)
Mutual labels:  slf4j
Kotlin Inline Logger
A logger facilitating lazily-evaluated log calls via Kotlin's inline classes & functions.
Stars: ✭ 77 (+285%)
Mutual labels:  slf4j
Finatra
Fast, testable, Scala services built on TwitterServer and Finagle
Stars: ✭ 2,126 (+10530%)
Mutual labels:  slf4j
echopraxia
Java Logging API with clean and simple structured logging and conditional & contextual features. JSON implementations in Logback and Log4J.
Stars: ✭ 37 (+85%)
Mutual labels:  slf4j
Skill6 Website Backend
java进阶开发,高级版web项目。基于dubbo实现分布式微服务架构,基于spring boot、spring mvc、mybatis、docker、ELK、redis、vue.js、node.js等技术实现的技术分享交流网站。网站名称:技术流,英文名:skill6。主要功能有:登录注册、单点登录、restful设计、文章及评论、代码及资源下载、主题讨论等。持续更新中...
Stars: ✭ 140 (+600%)
Mutual labels:  slf4j
Slogging
A Typesafe-logging (and slf4j) compatible logging library based on macros for Scala/JVM, Scala.js, and Scala Native
Stars: ✭ 44 (+120%)
Mutual labels:  slf4j
Testlogcollectors
A framework for capturing log statements during tests. Compatible with most popular logging frameworks. Works with JUnit and TestNG
Stars: ✭ 31 (+55%)
Mutual labels:  slf4j
Tinylog
tinylog is a lightweight logging framework for Java, Kotlin, Scala, and Android
Stars: ✭ 360 (+1700%)
Mutual labels:  slf4j
Timbre
Pure Clojure/Script logging library
Stars: ✭ 1,253 (+6165%)
Mutual labels:  slf4j
trembita
Model complex data transformation pipelines easily
Stars: ✭ 44 (+120%)
Mutual labels:  slf4j
Sofa Common Tools
sofa-common-tools is a library that provide some utility functions to other SOFA libraries.
Stars: ✭ 141 (+605%)
Mutual labels:  slf4j
blindsight
Blindsight is a Scala logging API with DSL based structured logging, fluent logging, semantic logging, flow logging, and context aware logging.
Stars: ✭ 70 (+250%)
Mutual labels:  slf4j
Kotlin Logging
Lightweight logging framework for Kotlin. A convenient and performant logging library wrapping slf4j with Kotlin extensions
Stars: ✭ 1,378 (+6790%)
Mutual labels:  slf4j
Feign
Feign makes writing java http clients easier
Stars: ✭ 7,681 (+38305%)
Mutual labels:  slf4j
Scala Logging
Convenient and performant logging library for Scala wrapping SLF4J.
Stars: ✭ 804 (+3920%)
Mutual labels:  slf4j
Slf4j Timbre
SLF4J binding for Clojure's Timbre
Stars: ✭ 64 (+220%)
Mutual labels:  slf4j

slf4j-timber

The motivation of this project was to ease using existing libraries which use SLF4J as their logging framework on the Google Android platform in combination with Jake Wharton's Timber logging utility.

This project is based on the official slf4j-android implementation (+ bugfixes) but directs the logging calls mainly to Timber.log(...);.

Download Build Status Javadocs Coverage Status Maintainability

Quickstart

Add the following to your dependencies (add jcenter to your repositories if you haven't)

compile 'at.favre.lib:slf4j-timber:1.0.0'

And that's basically it. SLF4J will automatically look for implementations of ILoggerFactory in the classpath (so don't add this parallel to org.slf4j:slf4j-android)

Download

The artifacts are deployed to jcenter and Maven Central.

Description

Log level mapping

The priorities will be converted to LogCat's priority level and passed to Timber.log(...);. The Log.isLoggable() are not respected here, since Timber should be responsible to decide when to log what. The following table shows the mapping from SLF4J log levels to LogCat log levels.

SLF4J Android/Timber
TRACE VERBOSE
DEBUG DEBUG
INFO INFO
WARN WARN
ERROR ERROR

Logger name mapping

Logger instances created using the LoggerFactory are named either according to the name given as parameter, or the fully qualified class name of the class given as parameter. No truncating will take place since Timber handles this itself.

Limitations

The Android-Timber binding implementation currently does not support Markers. All logging methods which have a Marker parameter simply delegate to the corresponding method without a Marker parameter, i.e., the Marker parameter is silently ignored.

Digital Signatures

Signed Commits

All tags and commits by me are signed with git with my private key:

GPG key ID: 4FDF85343912A3AB
Fingerprint: 2FB392FB05158589B767960C4FDF85343912A3AB

Build

Assemble the lib with the following command

./gradlew :slf4j-timber:assemble

The .aar files can then be found in /slf4j-timber/build/outputs/aar folder

Tech Stack

  • Java 7
  • Maven

License

Copyright 2017 Patrick Favre-Bulle

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].