An example that shows some possibilities of using logback-android
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
gradle/wrapper
.editorconfig
.gitignore
.travis.yml
Jenkinsfile
LICENSE
README.md
SLF4J-control-flow-modules-and-layers.png
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

logback-android-demo

Build Status License

This example belongs to an article published in Java Magazin 9.17: Android Logging for Java Professionals – SLF4J and Logback in Android.
The original article (🇩🇪) can be found here: Android Logging für Java-Profis – SLF4J und Logback in Android.

An example that shows some possibilities of using logback-android:

Logback android in the Context of SLF4J

SLF4J-control-flow-modules-and-layers (created using mermaid)

Jenkins

Running Jenkinsfile with the pipeline plugin (tested with version 2.4) requires

  • A JDK defined as Jenkins tool (see Jenkinsfile for name of JDK tool)
  • Android SDK installed on Jenkins salve, matching the compileSdkVersion and buildToolsVersion as defined in app/build.gradle
  • Optional: You can add a build parameter RECIPIENTS that contains a comma-separated list of all email recipie