Advanced logging library for Android applications
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.5-1.
- logback-android-1.0.5-1.jar (MD5:
c97a5f2b25e148e8142cb670192f61ce) - slf4j-api-1.6.4.jar (MD5:
a134d83e0c12a9611824284c855ffb13)
-
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.
- SD card (
-
Ready to run!
See examples
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
For help with using logback-android, ask the mailing list: logback-user@qos.ch.
logback-android is built from Ant, using the Android SDK.
- Download the Android SDK, Revision 14 (or newer).
- Change directory to
${logback-android-src}/build/ant. - Edit
ant.properties:- Set
sdk.dirto the root directory of the Android SDK. - Set
slf4j.jarto the path of SLF4J API library.
- Set
- Enter
antto begin the build. The JAR is created atbin/logback-android-1.0.5-1.jar.