You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2020/03/17 02:37:00 UTC

[jira] [Created] (SCB-1802) for servlet transport, remove log4j will cause some change

liubao created SCB-1802:
---------------------------

             Summary: for servlet transport, remove log4j will cause some change
                 Key: SCB-1802
                 URL: https://issues.apache.org/jira/browse/SCB-1802
             Project: Apache ServiceComb
          Issue Type: Sub-task
          Components: Java-Chassis
            Reporter: liubao
            Assignee: liubao
             Fix For: java-chassis-2.0.1


```

public void initLog(ServletContextEvent sce) throws Exception {
 String logMerged = sce.getServletContext().getInitParameter("servicecomb.logging.merged");
 if (!FALSE.toString().equalsIgnoreCase(logMerged)) {
 Log4jUtils.init();
 }
}

```

 

when run in servlet container, will init log4j, now log4j is removed for optional, user's need to init log4j themselves. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)