Adding error logging to log4j log levels.