Add support for log4j. (enable with -v parameter)

Change-Id: Ib73a1206170194b44cacb02c052c756d5066c0a1