added ERROR level logging in log4j