You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Vasu (Jira)" <ji...@apache.org> on 2022/02/05 23:49:00 UTC

[jira] [Created] (LOG4J2-3395) How can I redirect sysout/syserr log message to file when

Vasu created LOG4J2-3395:
----------------------------

             Summary: How can I redirect sysout/syserr log message to file when
                 Key: LOG4J2-3395
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3395
             Project: Log4j 2
          Issue Type: Question
          Components: API, Core
    Affects Versions: 2.17.1
            Reporter: Vasu


I have an Java application that execute on cluster and I need to capture all the log message in either file or console based on user's choice. I Am creating Console and RollingFileAppender as [here|https://stackoverflow.com/questions/70996311/all-logs-are-not-going-to-file-when-file-logging-enabled] and I was able to redirect my application logs to file or console as desired. But my cluster logs (sysout or syserr) are always going to console. How can i overwrite this default behavior? 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)