• Jenkins 2.218

      Upon upgrading from 2.176 to 2.177, it would appear that support for providing a custom log format has been broken, due to what looks like an undocumented change (https://github.com/jenkinsci/winstone/pull/63) in the Winstone library. 

      Logging.properties file:

      .level=ALL
      handlers=java.util.logging.ConsoleHandler
      
      java.util.logging.SimpleFormatter.format=[%1$tF %1$tT.%1$tL][%4$s][%2$s] %5$s %6$s%n 
      java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

      I've also added the following JVM argument:

      -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties
      

       

      Log format with 2.176:

      [2019-06-06 15:10:07.881][INFO][jenkins.InitReactorRunner$1 onAttained] Completed initialization
      [2019-06-06 15:10:08.052][INFO][hudson.WebAppMain$3 run] Jenkins is fully up and running
      

       

      Log format with 2.177:

      2019-06-06 15:11:40.956+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization 
      2019-06-06 15:11:41.136+0000 [id=20] INFO hudson.WebAppMain$3#run: Jenkins is fully up and running
      

          [JENKINS-57888] Custom log format broken by 2.177

          Gavin Williams created issue -
          Gavin Williams made changes -
          Description Original: Upon upgrading from 2.176 to 2.177, it would appear that support for providing a custom log format has been broken, I suspect by the upgrade of Jetty. 

          Logging.properties file:
          {code:java}
          .level=ALL
          handlers=java.util.logging.ConsoleHandler

          java.util.logging.SimpleFormatter.format=[%1$tF %1$tT.%1$tL][%4$s][%2$s] %5$s %6$s%n
          java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter{code}
          I've also added the following JVM argument:
          {code:java}
          -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties
          {code}
           

          Log format with 2.176:
          {noformat}
          [2019-06-06 15:10:07.881][INFO][jenkins.InitReactorRunner$1 onAttained] Completed initialization
          [2019-06-06 15:10:08.052][INFO][hudson.WebAppMain$3 run] Jenkins is fully up and running
          {noformat}
           

          Log format with 2.177:
          {noformat}
          2019-06-06 15:11:40.956+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
          2019-06-06 15:11:41.136+0000 [id=20] INFO hudson.WebAppMain$3#run: Jenkins is fully up and running
          {noformat}
          New: Upon upgrading from 2.176 to 2.177, it would appear that support for providing a custom log format has been broken, due to what looks like an undocumented [change|[https://github.com/jenkinsci/winstone/pull/63]] in the Winstone library. 

          Logging.properties file:
          {code:java}
          .level=ALL
          handlers=java.util.logging.ConsoleHandler

          java.util.logging.SimpleFormatter.format=[%1$tF %1$tT.%1$tL][%4$s][%2$s] %5$s %6$s%n
          java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter{code}
          I've also added the following JVM argument:
          {code:java}
          -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties
          {code}
           

          Log format with 2.176:
          {noformat}
          [2019-06-06 15:10:07.881][INFO][jenkins.InitReactorRunner$1 onAttained] Completed initialization
          [2019-06-06 15:10:08.052][INFO][hudson.WebAppMain$3 run] Jenkins is fully up and running
          {noformat}
           

          Log format with 2.177:
          {noformat}
          2019-06-06 15:11:40.956+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
          2019-06-06 15:11:41.136+0000 [id=20] INFO hudson.WebAppMain$3#run: Jenkins is fully up and running
          {noformat}
          Gavin Williams made changes -
          Description Original: Upon upgrading from 2.176 to 2.177, it would appear that support for providing a custom log format has been broken, due to what looks like an undocumented [change|[https://github.com/jenkinsci/winstone/pull/63]] in the Winstone library. 

          Logging.properties file:
          {code:java}
          .level=ALL
          handlers=java.util.logging.ConsoleHandler

          java.util.logging.SimpleFormatter.format=[%1$tF %1$tT.%1$tL][%4$s][%2$s] %5$s %6$s%n
          java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter{code}
          I've also added the following JVM argument:
          {code:java}
          -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties
          {code}
           

          Log format with 2.176:
          {noformat}
          [2019-06-06 15:10:07.881][INFO][jenkins.InitReactorRunner$1 onAttained] Completed initialization
          [2019-06-06 15:10:08.052][INFO][hudson.WebAppMain$3 run] Jenkins is fully up and running
          {noformat}
           

          Log format with 2.177:
          {noformat}
          2019-06-06 15:11:40.956+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
          2019-06-06 15:11:41.136+0000 [id=20] INFO hudson.WebAppMain$3#run: Jenkins is fully up and running
          {noformat}
          New: Upon upgrading from 2.176 to 2.177, it would appear that support for providing a custom log format has been broken, due to what looks like an undocumented change ([https://github.com/jenkinsci/winstone/pull/63]) in the Winstone library. 

          Logging.properties file:
          {code:java}
          .level=ALL
          handlers=java.util.logging.ConsoleHandler

          java.util.logging.SimpleFormatter.format=[%1$tF %1$tT.%1$tL][%4$s][%2$s] %5$s %6$s%n
          java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter{code}
          I've also added the following JVM argument:
          {code:java}
          -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties
          {code}
           

          Log format with 2.176:
          {noformat}
          [2019-06-06 15:10:07.881][INFO][jenkins.InitReactorRunner$1 onAttained] Completed initialization
          [2019-06-06 15:10:08.052][INFO][hudson.WebAppMain$3 run] Jenkins is fully up and running
          {noformat}
           

          Log format with 2.177:
          {noformat}
          2019-06-06 15:11:40.956+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
          2019-06-06 15:11:41.136+0000 [id=20] INFO hudson.WebAppMain$3#run: Jenkins is fully up and running
          {noformat}
          Daniel Beck made changes -
          Labels New: regression
          Daniel Beck made changes -
          Component/s New: winstone-jetty [ 20645 ]
          Louis-Rémi Paquet made changes -
          Assignee New: Louis-Rémi Paquet [ l_r ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "winstone #87 (Web Link)" [ 24301 ]
          Oleg Nenashev made changes -
          Oleg Nenashev made changes -
          Released As New: Jenkins 2.218
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

            l_r Louis-Rémi Paquet
            fatmcgav Gavin Williams
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: