Hi, below code is logging information to tomcat console but we want it to be printed to some other file or path, are there any provision given by cloudbees inorder to achieve this instead of printing to tomcat console.
private synchronized void ensureSyslogServerConnection() throws IOException {
InetAddress inetAddress = syslogServerHostnameReference.get();
if (socket != null && !Objects.equals(socket.getInetAddress(), inetAddress)) {
logger.info("InetAddress of the Syslog Server have changed, create a new connection. " +
"Before=" + socket.getInetAddress() + ", new=" + inetAddress);