Log4j2 disable console on production












0















I'm developing a Web app and I'm using log4j2. In developing mode, I'm logging using RollingFile and Console appenders.



Everything is working properly, but I'd want to disable the Console appender when my project will be released and it will be in production mode.
Here's a slice of my log4j2.xml code:



<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn" name="PropertiesConfig" packages="com.project.application">

<!-- PROPERTIES -->
<Properties>
<Property name="webName">Project</Property>
<Property name="logBaseDir">${sys:catalina.base}/logs/</Property>
<Property name="consolePattern">%highlight{[%-5level] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%c{1}] - %msg%n}</Property>
<Property name="rollingFilePattern">[%-5level] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%c{1}] - %msg%n</Property>
</Properties>

<!-- APPENDERS -->
<Appenders>
<!-- Console -->
<Console name="Console"
target="SYSTEM_OUT"
immediateFlush="true">
<PatternLayout>
<pattern>${consolePattern}</pattern>
</PatternLayout>
</Console>

<!-- RollingFile -->
<RollingFile name="RollingFile"
fileName="${sys:logBaseDir}${webName}/${webName}.log"
filePattern="${sys:logBaseDir}${webName}.%d{yyyy-MM-dd}.log"
immediateFlush="true">
<PatternLayout>
<pattern>${rollingFilePattern}</pattern>
</PatternLayout>
<Policies>
<OnStartupTriggeringPolicy />
<TimeBasedTriggeringPolicy interval="1" modulate="true" />
</Policies>
</RollingFile>

<!-- LOGGERS -->
<Loggers>
<Logger name="com.project.application" additivity="true" level="warn">
<AppenderRef ref="RollingFile" />
</Logger>

<Root level="info"> <!-- @TODO disable in production -->
<AppenderRef ref="Console" />
</Root>
</Loggers>

</Configuration>


Thank you!










share|improve this question



























    0















    I'm developing a Web app and I'm using log4j2. In developing mode, I'm logging using RollingFile and Console appenders.



    Everything is working properly, but I'd want to disable the Console appender when my project will be released and it will be in production mode.
    Here's a slice of my log4j2.xml code:



    <?xml version="1.0" encoding="UTF-8"?>
    <Configuration status="warn" name="PropertiesConfig" packages="com.project.application">

    <!-- PROPERTIES -->
    <Properties>
    <Property name="webName">Project</Property>
    <Property name="logBaseDir">${sys:catalina.base}/logs/</Property>
    <Property name="consolePattern">%highlight{[%-5level] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%c{1}] - %msg%n}</Property>
    <Property name="rollingFilePattern">[%-5level] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%c{1}] - %msg%n</Property>
    </Properties>

    <!-- APPENDERS -->
    <Appenders>
    <!-- Console -->
    <Console name="Console"
    target="SYSTEM_OUT"
    immediateFlush="true">
    <PatternLayout>
    <pattern>${consolePattern}</pattern>
    </PatternLayout>
    </Console>

    <!-- RollingFile -->
    <RollingFile name="RollingFile"
    fileName="${sys:logBaseDir}${webName}/${webName}.log"
    filePattern="${sys:logBaseDir}${webName}.%d{yyyy-MM-dd}.log"
    immediateFlush="true">
    <PatternLayout>
    <pattern>${rollingFilePattern}</pattern>
    </PatternLayout>
    <Policies>
    <OnStartupTriggeringPolicy />
    <TimeBasedTriggeringPolicy interval="1" modulate="true" />
    </Policies>
    </RollingFile>

    <!-- LOGGERS -->
    <Loggers>
    <Logger name="com.project.application" additivity="true" level="warn">
    <AppenderRef ref="RollingFile" />
    </Logger>

    <Root level="info"> <!-- @TODO disable in production -->
    <AppenderRef ref="Console" />
    </Root>
    </Loggers>

    </Configuration>


    Thank you!










    share|improve this question

























      0












      0








      0








      I'm developing a Web app and I'm using log4j2. In developing mode, I'm logging using RollingFile and Console appenders.



      Everything is working properly, but I'd want to disable the Console appender when my project will be released and it will be in production mode.
      Here's a slice of my log4j2.xml code:



      <?xml version="1.0" encoding="UTF-8"?>
      <Configuration status="warn" name="PropertiesConfig" packages="com.project.application">

      <!-- PROPERTIES -->
      <Properties>
      <Property name="webName">Project</Property>
      <Property name="logBaseDir">${sys:catalina.base}/logs/</Property>
      <Property name="consolePattern">%highlight{[%-5level] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%c{1}] - %msg%n}</Property>
      <Property name="rollingFilePattern">[%-5level] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%c{1}] - %msg%n</Property>
      </Properties>

      <!-- APPENDERS -->
      <Appenders>
      <!-- Console -->
      <Console name="Console"
      target="SYSTEM_OUT"
      immediateFlush="true">
      <PatternLayout>
      <pattern>${consolePattern}</pattern>
      </PatternLayout>
      </Console>

      <!-- RollingFile -->
      <RollingFile name="RollingFile"
      fileName="${sys:logBaseDir}${webName}/${webName}.log"
      filePattern="${sys:logBaseDir}${webName}.%d{yyyy-MM-dd}.log"
      immediateFlush="true">
      <PatternLayout>
      <pattern>${rollingFilePattern}</pattern>
      </PatternLayout>
      <Policies>
      <OnStartupTriggeringPolicy />
      <TimeBasedTriggeringPolicy interval="1" modulate="true" />
      </Policies>
      </RollingFile>

      <!-- LOGGERS -->
      <Loggers>
      <Logger name="com.project.application" additivity="true" level="warn">
      <AppenderRef ref="RollingFile" />
      </Logger>

      <Root level="info"> <!-- @TODO disable in production -->
      <AppenderRef ref="Console" />
      </Root>
      </Loggers>

      </Configuration>


      Thank you!










      share|improve this question














      I'm developing a Web app and I'm using log4j2. In developing mode, I'm logging using RollingFile and Console appenders.



      Everything is working properly, but I'd want to disable the Console appender when my project will be released and it will be in production mode.
      Here's a slice of my log4j2.xml code:



      <?xml version="1.0" encoding="UTF-8"?>
      <Configuration status="warn" name="PropertiesConfig" packages="com.project.application">

      <!-- PROPERTIES -->
      <Properties>
      <Property name="webName">Project</Property>
      <Property name="logBaseDir">${sys:catalina.base}/logs/</Property>
      <Property name="consolePattern">%highlight{[%-5level] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%c{1}] - %msg%n}</Property>
      <Property name="rollingFilePattern">[%-5level] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%c{1}] - %msg%n</Property>
      </Properties>

      <!-- APPENDERS -->
      <Appenders>
      <!-- Console -->
      <Console name="Console"
      target="SYSTEM_OUT"
      immediateFlush="true">
      <PatternLayout>
      <pattern>${consolePattern}</pattern>
      </PatternLayout>
      </Console>

      <!-- RollingFile -->
      <RollingFile name="RollingFile"
      fileName="${sys:logBaseDir}${webName}/${webName}.log"
      filePattern="${sys:logBaseDir}${webName}.%d{yyyy-MM-dd}.log"
      immediateFlush="true">
      <PatternLayout>
      <pattern>${rollingFilePattern}</pattern>
      </PatternLayout>
      <Policies>
      <OnStartupTriggeringPolicy />
      <TimeBasedTriggeringPolicy interval="1" modulate="true" />
      </Policies>
      </RollingFile>

      <!-- LOGGERS -->
      <Loggers>
      <Logger name="com.project.application" additivity="true" level="warn">
      <AppenderRef ref="RollingFile" />
      </Logger>

      <Root level="info"> <!-- @TODO disable in production -->
      <AppenderRef ref="Console" />
      </Root>
      </Loggers>

      </Configuration>


      Thank you!







      log4j2 appender






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '18 at 11:30









      OmmadawnOmmadawn

      4191417




      4191417
























          1 Answer
          1






          active

          oldest

          votes


















          1














          Use a filter, e.g. ThreadContextMapFilter:



          <Console name="Console" target="SYSTEM_OUT" immediateFlush="true">
          <ThreadContextMapFilter onMatch="DENY" onMismatch="NEUTRAL">
          <KeyValuePair key="is-production" value="1"/><!-- skip on production -->
          </ThreadContextMapFilter>
          <PatternLayout>
          <pattern>${consolePattern}</pattern>
          </PatternLayout>
          </Console>


          The initialization of the ThreadContext entry can be perfomed in a ServletContextListener, e.g.:



          @WebListener
          public class Log4jThreadContextInitializer implements ServletContextListener {

          @Override
          public void contextInitialized(ServletContextEvent sce) {
          String isProduction = isProduction() ? "1" : "0";
          sce.getServletContext().log("Setting 'is-production' flag for Log4j to " + isProduction);
          org.apache.logging.log4j.ThreadContext.put("is-production", isProduction);
          }

          private boolean isProduction() {
          // TODO: production detection
          }

          @Override
          public void contextDestroyed(ServletContextEvent sce) {
          }
          }





          share|improve this answer
























          • Thank you very much! Some questions: can I set the value in the xml as "1" or "0" directly and nothing else? Why the initialization in the ServletContextListener?

            – Ommadawn
            Nov 20 '18 at 14:15











          • @Ommadawn But if you were to set the value in the XML (I don't even know if it's at all possible), how would you detect whether it is production or not? Perhaps, you'd need a different log4j2.xml for production then. Note that the code in log4j2.xml that I posted does not set anything - it only tests if the value is set to "1" or not.

            – Tomasz Linkowski
            Nov 20 '18 at 14:36











          • I just would wanted a value that if it was set as 1, it disable the console output print

            – Ommadawn
            Nov 20 '18 at 14:38











          • @Ommadawn I'm afraid I don't understand. In the answer, I've shown how it can be done. If something's unclear, please be more specific about what exactly it is that you expect.

            – Tomasz Linkowski
            Nov 20 '18 at 21:00






          • 1





            @Ommadawn Yes, if you set is-production to 1 in ThreadContext, Log4j2 will skip the console appender (because the ThreadContextMapFilter is configured as onMatch="DENY", meaning it skips the appender if the condition matches).

            – Tomasz Linkowski
            Nov 22 '18 at 10:32











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53392068%2flog4j2-disable-console-on-production%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Use a filter, e.g. ThreadContextMapFilter:



          <Console name="Console" target="SYSTEM_OUT" immediateFlush="true">
          <ThreadContextMapFilter onMatch="DENY" onMismatch="NEUTRAL">
          <KeyValuePair key="is-production" value="1"/><!-- skip on production -->
          </ThreadContextMapFilter>
          <PatternLayout>
          <pattern>${consolePattern}</pattern>
          </PatternLayout>
          </Console>


          The initialization of the ThreadContext entry can be perfomed in a ServletContextListener, e.g.:



          @WebListener
          public class Log4jThreadContextInitializer implements ServletContextListener {

          @Override
          public void contextInitialized(ServletContextEvent sce) {
          String isProduction = isProduction() ? "1" : "0";
          sce.getServletContext().log("Setting 'is-production' flag for Log4j to " + isProduction);
          org.apache.logging.log4j.ThreadContext.put("is-production", isProduction);
          }

          private boolean isProduction() {
          // TODO: production detection
          }

          @Override
          public void contextDestroyed(ServletContextEvent sce) {
          }
          }





          share|improve this answer
























          • Thank you very much! Some questions: can I set the value in the xml as "1" or "0" directly and nothing else? Why the initialization in the ServletContextListener?

            – Ommadawn
            Nov 20 '18 at 14:15











          • @Ommadawn But if you were to set the value in the XML (I don't even know if it's at all possible), how would you detect whether it is production or not? Perhaps, you'd need a different log4j2.xml for production then. Note that the code in log4j2.xml that I posted does not set anything - it only tests if the value is set to "1" or not.

            – Tomasz Linkowski
            Nov 20 '18 at 14:36











          • I just would wanted a value that if it was set as 1, it disable the console output print

            – Ommadawn
            Nov 20 '18 at 14:38











          • @Ommadawn I'm afraid I don't understand. In the answer, I've shown how it can be done. If something's unclear, please be more specific about what exactly it is that you expect.

            – Tomasz Linkowski
            Nov 20 '18 at 21:00






          • 1





            @Ommadawn Yes, if you set is-production to 1 in ThreadContext, Log4j2 will skip the console appender (because the ThreadContextMapFilter is configured as onMatch="DENY", meaning it skips the appender if the condition matches).

            – Tomasz Linkowski
            Nov 22 '18 at 10:32
















          1














          Use a filter, e.g. ThreadContextMapFilter:



          <Console name="Console" target="SYSTEM_OUT" immediateFlush="true">
          <ThreadContextMapFilter onMatch="DENY" onMismatch="NEUTRAL">
          <KeyValuePair key="is-production" value="1"/><!-- skip on production -->
          </ThreadContextMapFilter>
          <PatternLayout>
          <pattern>${consolePattern}</pattern>
          </PatternLayout>
          </Console>


          The initialization of the ThreadContext entry can be perfomed in a ServletContextListener, e.g.:



          @WebListener
          public class Log4jThreadContextInitializer implements ServletContextListener {

          @Override
          public void contextInitialized(ServletContextEvent sce) {
          String isProduction = isProduction() ? "1" : "0";
          sce.getServletContext().log("Setting 'is-production' flag for Log4j to " + isProduction);
          org.apache.logging.log4j.ThreadContext.put("is-production", isProduction);
          }

          private boolean isProduction() {
          // TODO: production detection
          }

          @Override
          public void contextDestroyed(ServletContextEvent sce) {
          }
          }





          share|improve this answer
























          • Thank you very much! Some questions: can I set the value in the xml as "1" or "0" directly and nothing else? Why the initialization in the ServletContextListener?

            – Ommadawn
            Nov 20 '18 at 14:15











          • @Ommadawn But if you were to set the value in the XML (I don't even know if it's at all possible), how would you detect whether it is production or not? Perhaps, you'd need a different log4j2.xml for production then. Note that the code in log4j2.xml that I posted does not set anything - it only tests if the value is set to "1" or not.

            – Tomasz Linkowski
            Nov 20 '18 at 14:36











          • I just would wanted a value that if it was set as 1, it disable the console output print

            – Ommadawn
            Nov 20 '18 at 14:38











          • @Ommadawn I'm afraid I don't understand. In the answer, I've shown how it can be done. If something's unclear, please be more specific about what exactly it is that you expect.

            – Tomasz Linkowski
            Nov 20 '18 at 21:00






          • 1





            @Ommadawn Yes, if you set is-production to 1 in ThreadContext, Log4j2 will skip the console appender (because the ThreadContextMapFilter is configured as onMatch="DENY", meaning it skips the appender if the condition matches).

            – Tomasz Linkowski
            Nov 22 '18 at 10:32














          1












          1








          1







          Use a filter, e.g. ThreadContextMapFilter:



          <Console name="Console" target="SYSTEM_OUT" immediateFlush="true">
          <ThreadContextMapFilter onMatch="DENY" onMismatch="NEUTRAL">
          <KeyValuePair key="is-production" value="1"/><!-- skip on production -->
          </ThreadContextMapFilter>
          <PatternLayout>
          <pattern>${consolePattern}</pattern>
          </PatternLayout>
          </Console>


          The initialization of the ThreadContext entry can be perfomed in a ServletContextListener, e.g.:



          @WebListener
          public class Log4jThreadContextInitializer implements ServletContextListener {

          @Override
          public void contextInitialized(ServletContextEvent sce) {
          String isProduction = isProduction() ? "1" : "0";
          sce.getServletContext().log("Setting 'is-production' flag for Log4j to " + isProduction);
          org.apache.logging.log4j.ThreadContext.put("is-production", isProduction);
          }

          private boolean isProduction() {
          // TODO: production detection
          }

          @Override
          public void contextDestroyed(ServletContextEvent sce) {
          }
          }





          share|improve this answer













          Use a filter, e.g. ThreadContextMapFilter:



          <Console name="Console" target="SYSTEM_OUT" immediateFlush="true">
          <ThreadContextMapFilter onMatch="DENY" onMismatch="NEUTRAL">
          <KeyValuePair key="is-production" value="1"/><!-- skip on production -->
          </ThreadContextMapFilter>
          <PatternLayout>
          <pattern>${consolePattern}</pattern>
          </PatternLayout>
          </Console>


          The initialization of the ThreadContext entry can be perfomed in a ServletContextListener, e.g.:



          @WebListener
          public class Log4jThreadContextInitializer implements ServletContextListener {

          @Override
          public void contextInitialized(ServletContextEvent sce) {
          String isProduction = isProduction() ? "1" : "0";
          sce.getServletContext().log("Setting 'is-production' flag for Log4j to " + isProduction);
          org.apache.logging.log4j.ThreadContext.put("is-production", isProduction);
          }

          private boolean isProduction() {
          // TODO: production detection
          }

          @Override
          public void contextDestroyed(ServletContextEvent sce) {
          }
          }






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 '18 at 12:46









          Tomasz LinkowskiTomasz Linkowski

          2,925821




          2,925821













          • Thank you very much! Some questions: can I set the value in the xml as "1" or "0" directly and nothing else? Why the initialization in the ServletContextListener?

            – Ommadawn
            Nov 20 '18 at 14:15











          • @Ommadawn But if you were to set the value in the XML (I don't even know if it's at all possible), how would you detect whether it is production or not? Perhaps, you'd need a different log4j2.xml for production then. Note that the code in log4j2.xml that I posted does not set anything - it only tests if the value is set to "1" or not.

            – Tomasz Linkowski
            Nov 20 '18 at 14:36











          • I just would wanted a value that if it was set as 1, it disable the console output print

            – Ommadawn
            Nov 20 '18 at 14:38











          • @Ommadawn I'm afraid I don't understand. In the answer, I've shown how it can be done. If something's unclear, please be more specific about what exactly it is that you expect.

            – Tomasz Linkowski
            Nov 20 '18 at 21:00






          • 1





            @Ommadawn Yes, if you set is-production to 1 in ThreadContext, Log4j2 will skip the console appender (because the ThreadContextMapFilter is configured as onMatch="DENY", meaning it skips the appender if the condition matches).

            – Tomasz Linkowski
            Nov 22 '18 at 10:32



















          • Thank you very much! Some questions: can I set the value in the xml as "1" or "0" directly and nothing else? Why the initialization in the ServletContextListener?

            – Ommadawn
            Nov 20 '18 at 14:15











          • @Ommadawn But if you were to set the value in the XML (I don't even know if it's at all possible), how would you detect whether it is production or not? Perhaps, you'd need a different log4j2.xml for production then. Note that the code in log4j2.xml that I posted does not set anything - it only tests if the value is set to "1" or not.

            – Tomasz Linkowski
            Nov 20 '18 at 14:36











          • I just would wanted a value that if it was set as 1, it disable the console output print

            – Ommadawn
            Nov 20 '18 at 14:38











          • @Ommadawn I'm afraid I don't understand. In the answer, I've shown how it can be done. If something's unclear, please be more specific about what exactly it is that you expect.

            – Tomasz Linkowski
            Nov 20 '18 at 21:00






          • 1





            @Ommadawn Yes, if you set is-production to 1 in ThreadContext, Log4j2 will skip the console appender (because the ThreadContextMapFilter is configured as onMatch="DENY", meaning it skips the appender if the condition matches).

            – Tomasz Linkowski
            Nov 22 '18 at 10:32

















          Thank you very much! Some questions: can I set the value in the xml as "1" or "0" directly and nothing else? Why the initialization in the ServletContextListener?

          – Ommadawn
          Nov 20 '18 at 14:15





          Thank you very much! Some questions: can I set the value in the xml as "1" or "0" directly and nothing else? Why the initialization in the ServletContextListener?

          – Ommadawn
          Nov 20 '18 at 14:15













          @Ommadawn But if you were to set the value in the XML (I don't even know if it's at all possible), how would you detect whether it is production or not? Perhaps, you'd need a different log4j2.xml for production then. Note that the code in log4j2.xml that I posted does not set anything - it only tests if the value is set to "1" or not.

          – Tomasz Linkowski
          Nov 20 '18 at 14:36





          @Ommadawn But if you were to set the value in the XML (I don't even know if it's at all possible), how would you detect whether it is production or not? Perhaps, you'd need a different log4j2.xml for production then. Note that the code in log4j2.xml that I posted does not set anything - it only tests if the value is set to "1" or not.

          – Tomasz Linkowski
          Nov 20 '18 at 14:36













          I just would wanted a value that if it was set as 1, it disable the console output print

          – Ommadawn
          Nov 20 '18 at 14:38





          I just would wanted a value that if it was set as 1, it disable the console output print

          – Ommadawn
          Nov 20 '18 at 14:38













          @Ommadawn I'm afraid I don't understand. In the answer, I've shown how it can be done. If something's unclear, please be more specific about what exactly it is that you expect.

          – Tomasz Linkowski
          Nov 20 '18 at 21:00





          @Ommadawn I'm afraid I don't understand. In the answer, I've shown how it can be done. If something's unclear, please be more specific about what exactly it is that you expect.

          – Tomasz Linkowski
          Nov 20 '18 at 21:00




          1




          1





          @Ommadawn Yes, if you set is-production to 1 in ThreadContext, Log4j2 will skip the console appender (because the ThreadContextMapFilter is configured as onMatch="DENY", meaning it skips the appender if the condition matches).

          – Tomasz Linkowski
          Nov 22 '18 at 10:32





          @Ommadawn Yes, if you set is-production to 1 in ThreadContext, Log4j2 will skip the console appender (because the ThreadContextMapFilter is configured as onMatch="DENY", meaning it skips the appender if the condition matches).

          – Tomasz Linkowski
          Nov 22 '18 at 10:32


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53392068%2flog4j2-disable-console-on-production%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          'app-layout' is not a known element: how to share Component with different Modules

          android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

          WPF add header to Image with URL pettitions [duplicate]