Skip to content

The reliable, generic, fast and flexible logging framework for Java on Android.

License

Notifications You must be signed in to change notification settings

nking-1/logback-android

 
 

Repository files navigation


This project has moved to qos-ch/logback-android
and will be deleted May 9, 2012.


logback-android

Advanced logging library for Android applications

Overview

Logback-Android brings the power of Logback to Android. Logback is a reliable, generic, fast, and flexible logging library for Java applications.

The current version is 1.0.1-1.

Download

Quickstart

  1. Add Logback and SLF4J to your project classpath.

  2. Enter configuration XML in one of the following locations. Note that Logback-Android checks them in exact order and uses the first one found.

    • SD card (/sdcard/logback/logback.xml)
    • Your application's AndroidManifest.xml
    • Your application's assets/logback.xml (create dir if necessary)

    If not found, a simple LogcatAppender is used by default.

  3. Ready to run!

See examples

Features Supported

Runs on Android 2.1+

Logback-Android supports only a subset of Logback's features (i.e., the logback-core and logback-classic modules). It does NOT support the following:

  • logback-access
  • Groovy configuration
  • Conditionals in the configuration XML
  • JMS, JMX, JNDI, and Servlets

Documentation

For help with using Logback-Android, ask the mailing list: logback-user AT qos DOT ch.

Build

Logback-Android is built from Ant, using the Android SDK.

  1. Download the Android SDK, Revision 14 (or newer).
  2. Change directory to ${logback-android-src}/build/ant.
  3. Edit ant.properties:
    • Set sdk.dir to the root directory of the Android SDK.
    • Set slf4j.jar to the path of SLF4J API library.
  4. Enter ant to begin the build. The JAR is created at bin/logback-android-1.0.1-1.jar.

About

The reliable, generic, fast and flexible logging framework for Java on Android.

Resources

License

Stars

Watchers

Forks

Packages

No packages published