Skip to content

Cloudbees logs some loggers to tomcat console is there a way can this be redirected to any other file or path? #105

@Poojam-murthy

Description

@Poojam-murthy

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);

    }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions