I found a neat library to allow me to use log4j over slf4j on android. But how about going a little further?

If I query the android.util.Config.DEBUG I can configure the android logging log4j library to set log4j to use either a logcat appender supplied by the library or a file appender to output to the sdcard, see the gist.
This allows me to support two use cases, one where I am debugging using locat and the other one when we need a log report from an end user as it non debug mode sets file appender as the log output.