Determine the Network via prefix and Logging using Log4j