[jira] [Commented] (FLINK-9281) LogBack not working
[ https://issues.apache.org/jira/browse/FLINK-9281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461564#comment-16461564 ] Tim commented on FLINK-9281: Update: Looks like this works with logback v1.1.3, but does not work with version 1.3.0-alpha4. Here's what I have in my $FLINK_DIR/lib folder: # logback-classic-1.1.3.jar # logback-core-1.1.3.jar # log4j-over-slf4j-1.7.7.jar > LogBack not working > --- > > Key: FLINK-9281 > URL: https://issues.apache.org/jira/browse/FLINK-9281 > Project: Flink > Issue Type: Bug > Components: Logging >Affects Versions: 1.4.2 >Reporter: Tim >Priority: Major > > I am trying to get Flink to work with Logback instead of Log4J. However, it > is not working. > My setup is as follows the advice on this page: > https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/best_practices.html#use-logback-when-running-flink-on-a-cluster > * Flink v1.4.2 running a stand-alone cluster. > * Started JobManager as a foreground process (bin/jobmanager.sh > start-foreground cluster). I updated bin/flink-console.sh to reference > logback.xml via -Dlogback.configurationFile=file:/path/to/logfile. > * Removed log4j jars under libs/ (log4j-1.2.xx.jar and > sfl4j-log4j12-xxx.jar) > * Added logback jars under libs/ (logback-classic, logback-core, > log4j-over-slf4j.jar) > However, I am not getting any file created. Also, as a dumb test I > referenced a non-existent logback.xml file (changed path to a non-existent > folder) just to see if any errors appear on stdout, but nothing. > Thanks > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (FLINK-9281) LogBack not working
[ https://issues.apache.org/jira/browse/FLINK-9281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16466229#comment-16466229 ] Stephan Ewen commented on FLINK-9281: - Do you have any insights into why it does not work with newer logback versions? Is the slf4j version in Flink outdated? > LogBack not working > --- > > Key: FLINK-9281 > URL: https://issues.apache.org/jira/browse/FLINK-9281 > Project: Flink > Issue Type: Bug > Components: Logging >Affects Versions: 1.4.2 >Reporter: Tim >Priority: Major > > I am trying to get Flink to work with Logback instead of Log4J. However, it > is not working. > My setup is as follows the advice on this page: > https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/best_practices.html#use-logback-when-running-flink-on-a-cluster > * Flink v1.4.2 running a stand-alone cluster. > * Started JobManager as a foreground process (bin/jobmanager.sh > start-foreground cluster). I updated bin/flink-console.sh to reference > logback.xml via -Dlogback.configurationFile=file:/path/to/logfile. > * Removed log4j jars under libs/ (log4j-1.2.xx.jar and > sfl4j-log4j12-xxx.jar) > * Added logback jars under libs/ (logback-classic, logback-core, > log4j-over-slf4j.jar) > However, I am not getting any file created. Also, as a dumb test I > referenced a non-existent logback.xml file (changed path to a non-existent > folder) just to see if any errors appear on stdout, but nothing. > Thanks > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (FLINK-9281) LogBack not working
[ https://issues.apache.org/jira/browse/FLINK-9281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16466438#comment-16466438 ] Tim commented on FLINK-9281: Not really. Here's what I know a) If I run the Flink job in my IDE, logback (latest version) works fine. b) If I run in a standalone cluster, no output. Actually, it does not look like the -Dlogback.configurationFile JVM arg is even being honored I'll try doing "{{-verbose:class}}" to see if the LogBack classes are even being loaded. > LogBack not working > --- > > Key: FLINK-9281 > URL: https://issues.apache.org/jira/browse/FLINK-9281 > Project: Flink > Issue Type: Bug > Components: Logging >Affects Versions: 1.4.2 >Reporter: Tim >Priority: Major > > I am trying to get Flink to work with Logback instead of Log4J. However, it > is not working. > My setup is as follows the advice on this page: > https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/best_practices.html#use-logback-when-running-flink-on-a-cluster > * Flink v1.4.2 running a stand-alone cluster. > * Started JobManager as a foreground process (bin/jobmanager.sh > start-foreground cluster). I updated bin/flink-console.sh to reference > logback.xml via -Dlogback.configurationFile=file:/path/to/logfile. > * Removed log4j jars under libs/ (log4j-1.2.xx.jar and > sfl4j-log4j12-xxx.jar) > * Added logback jars under libs/ (logback-classic, logback-core, > log4j-over-slf4j.jar) > However, I am not getting any file created. Also, as a dumb test I > referenced a non-existent logback.xml file (changed path to a non-existent > folder) just to see if any errors appear on stdout, but nothing. > Thanks > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (FLINK-9281) LogBack not working
[ https://issues.apache.org/jira/browse/FLINK-9281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16468671#comment-16468671 ] Stephan Ewen commented on FLINK-9281: - Are you starting a Flink standalone cluster, or running on Yarn/Mesos/K8s? > LogBack not working > --- > > Key: FLINK-9281 > URL: https://issues.apache.org/jira/browse/FLINK-9281 > Project: Flink > Issue Type: Bug > Components: Logging >Affects Versions: 1.4.2 >Reporter: Tim >Priority: Major > > I am trying to get Flink to work with Logback instead of Log4J. However, it > is not working. > My setup is as follows the advice on this page: > https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/best_practices.html#use-logback-when-running-flink-on-a-cluster > * Flink v1.4.2 running a stand-alone cluster. > * Started JobManager as a foreground process (bin/jobmanager.sh > start-foreground cluster). I updated bin/flink-console.sh to reference > logback.xml via -Dlogback.configurationFile=file:/path/to/logfile. > * Removed log4j jars under libs/ (log4j-1.2.xx.jar and > sfl4j-log4j12-xxx.jar) > * Added logback jars under libs/ (logback-classic, logback-core, > log4j-over-slf4j.jar) > However, I am not getting any file created. Also, as a dumb test I > referenced a non-existent logback.xml file (changed path to a non-existent > folder) just to see if any errors appear on stdout, but nothing. > Thanks > -- This message was sent by Atlassian JIRA (v7.6.3#76005)