[
https://issues.apache.org/jira/browse/FLINK-17166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17100466#comment-17100466
]
Yang Wang commented on FLINK-17166:
-----------------------------------
[~trohrmann] I am not sure about what you have said in the ML that there are
solutions how to redirect stdout and stderr into separate files using tee
without duplication [1]. If you mean substreams, then we still need the grep to
filter out the log4j pattern just like following.
{code:java}
program 2>&1 | tee >(grep --line-buffered -v -E "$LOG4J_LAYOUT_PATTERN"
>"$out"){code}
In my opinion, we could not easily separate the {{system.out}} and log4j
{{ConsoleAppender}} from stdout. Since they have the same {{FileDescriptor}}.
[1]. [http://www.softpanorama.org/Tools/tee.shtml]
> Modify the log4j-console.properties to also output logs into the files for
> WebUI
> --------------------------------------------------------------------------------
>
> Key: FLINK-17166
> URL: https://issues.apache.org/jira/browse/FLINK-17166
> Project: Flink
> Issue Type: Sub-task
> Components: Runtime / Configuration
> Reporter: Andrey Zagrebin
> Assignee: Yang Wang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)