better approach to log4j issues