You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by zh...@apache.org on 2019/11/23 06:13:42 UTC

[submarine] branch master updated: SUBMARINE-215. Fix failed to load class org.slf4j.impl.StaticLoggerBinder in submitter-k8s

This is an automated email from the ASF dual-hosted git repository.

zhouquan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git


The following commit(s) were added to refs/heads/master by this push:
     new 35f4f74  SUBMARINE-215. Fix failed to load class org.slf4j.impl.StaticLoggerBinder in submitter-k8s
35f4f74 is described below

commit 35f4f74ccbcd08cbd7e8788536080109d1713554
Author: Wanqiang Ji <wa...@gmail.com>
AuthorDate: Fri Nov 22 23:58:56 2019 +0800

    SUBMARINE-215. Fix failed to load class org.slf4j.impl.StaticLoggerBinder in submitter-k8s
    
    ### What is this PR for?
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    
    ### What type of PR is it?
    [Bug Fix]
    
    ### Todos
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/SUBMARINE-215
    
    ### How should this be tested?
    https://travis-ci.org/jiwq/submarine/builds/615689764
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: Wanqiang Ji <wa...@gmail.com>
    
    Closes #99 from jiwq/SUBMARINE-215 and squashes the following commits:
    
    40485e9 [Wanqiang Ji] SUBMARINE-215. Fix failed to load class org.slf4j.impl.StaticLoggerBinder in submitter-k8s
---
 .../server-submitter/submitter-k8s/pom.xml         | 12 +++++++++++
 .../src/main/resources/log4j.properties            | 25 ++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/submarine-server/server-submitter/submitter-k8s/pom.xml b/submarine-server/server-submitter/submitter-k8s/pom.xml
index f98a9b6..4a2e3ed 100644
--- a/submarine-server/server-submitter/submitter-k8s/pom.xml
+++ b/submarine-server/server-submitter/submitter-k8s/pom.xml
@@ -34,6 +34,18 @@
 
   <dependencies>
     <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>${slf4j.version}</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>${slf4j.version}</version>
+    </dependency>
+
+    <dependency>
       <groupId>io.kubernetes</groupId>
       <artifactId>client-java</artifactId>
       <version>${k8s.client-java.version}</version>
diff --git a/submarine-server/server-submitter/submitter-k8s/src/main/resources/log4j.properties b/submarine-server/server-submitter/submitter-k8s/src/main/resources/log4j.properties
new file mode 100644
index 0000000..fdd0239
--- /dev/null
+++ b/submarine-server/server-submitter/submitter-k8s/src/main/resources/log4j.properties
@@ -0,0 +1,25 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+log4j.rootLogger = info, stdout
+
+log4j.appender.stdout = org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target = System.out
+log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org