Added functionality for logging (log4j2)