based on log4j 's  android logger.