Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67106

Stop Jenkins logging INFO messages to stderr and get them in stdout

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • logging-plugin
    • GKE cluster, latest available version installed through default Helm values.yaml

      Background: https://stackoverflow.com/questions/69647803/stop-jenkins-logging-info-messages-to-stderr-interpreted-as-errors-in-google-cl 

      I can modify the file logging.properties to get only WARNING and ERROR in stderr, but there is no way for the rest (INFO, DEBUG...) in stdout.

      I have tried with:

      .level = INFO 
      handlers= java.util.logging.StreamHandler, java.util.logging.ConsoleHandler

      java.util.logging.StreamHandler.level = INFO
      java.util.logging.StreamHandler.formatter = java.util.logging.SimpleFormatter
      java.util.logging.ConsoleHandler.level = WARNING
      java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

      and many other ways, without success. 

          [JENKINS-67106] Stop Jenkins logging INFO messages to stderr and get them in stdout

          Sergio created issue -
          Sergio made changes -
          Description Original: Background: [https://stackoverflow.com/questions/69647803/stop-jenkins-logging-info-messages-to-stderr-interpreted-as-errors-in-google-cl

          ]I can modify the file `logging.properties` to get only WARNING and ERROR in stderr, but there is no way for the rest (INFO, DEBUG...) in stdout.

          I have tried with:
          ```
          .level = INFO 
          handlers= java.util.logging.StreamHandler, java.util.logging.ConsoleHandler

          java.util.logging.StreamHandler.level = INFO
          java.util.logging.StreamHandler.formatter = java.util.logging.SimpleFormatter
          java.util.logging.ConsoleHandler.level = WARNING
          java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
          ```
          and many other ways, without success. 
          New: Background: [https://stackoverflow.com/questions/69647803/stop-jenkins-logging-info-messages-to-stderr-interpreted-as-errors-in-google-cl
          I can modify the file `logging.properties` to get only WARNING and ERROR in stderr, but there is no way for the rest (INFO, DEBUG...) in stdout.

          I have tried with:
           ```
           .level = INFO 
           handlers= java.util.logging.StreamHandler, java.util.logging.ConsoleHandler

          java.util.logging.StreamHandler.level = INFO
           java.util.logging.StreamHandler.formatter = java.util.logging.SimpleFormatter
           java.util.logging.ConsoleHandler.level = WARNING
           java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
           ```
           and many other ways, without success. 
          Sergio made changes -
          Description Original: Background: [https://stackoverflow.com/questions/69647803/stop-jenkins-logging-info-messages-to-stderr-interpreted-as-errors-in-google-cl
          I can modify the file `logging.properties` to get only WARNING and ERROR in stderr, but there is no way for the rest (INFO, DEBUG...) in stdout.

          I have tried with:
           ```
           .level = INFO 
           handlers= java.util.logging.StreamHandler, java.util.logging.ConsoleHandler

          java.util.logging.StreamHandler.level = INFO
           java.util.logging.StreamHandler.formatter = java.util.logging.SimpleFormatter
           java.util.logging.ConsoleHandler.level = WARNING
           java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
           ```
           and many other ways, without success. 
          New: Background: [https://stackoverflow.com/questions/69647803/stop-jenkins-logging-info-messages-to-stderr-interpreted-as-errors-in-google-cl

           I can modify the file ??logging.properties?? to get only WARNING and ERROR in stderr, but there is no way for the rest (INFO, DEBUG...) in stdout.

          I have tried with:

           ??.level = INFO ??
          ?? handlers= java.util.logging.StreamHandler, java.util.logging.ConsoleHandler??

          ??java.util.logging.StreamHandler.level = INFO??
          ?? java.util.logging.StreamHandler.formatter = java.util.logging.SimpleFormatter??
          ?? java.util.logging.ConsoleHandler.level = WARNING??
          ?? java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter??

           and many other ways, without success. 
          Sergio made changes -
          Description Original: Background: [https://stackoverflow.com/questions/69647803/stop-jenkins-logging-info-messages-to-stderr-interpreted-as-errors-in-google-cl

           I can modify the file ??logging.properties?? to get only WARNING and ERROR in stderr, but there is no way for the rest (INFO, DEBUG...) in stdout.

          I have tried with:

           ??.level = INFO ??
          ?? handlers= java.util.logging.StreamHandler, java.util.logging.ConsoleHandler??

          ??java.util.logging.StreamHandler.level = INFO??
          ?? java.util.logging.StreamHandler.formatter = java.util.logging.SimpleFormatter??
          ?? java.util.logging.ConsoleHandler.level = WARNING??
          ?? java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter??

           and many other ways, without success. 
          New: Background: [https://stackoverflow.com/questions/69647803/stop-jenkins-logging-info-messages-to-stderr-interpreted-as-errors-in-google-cl

          I can modify the file ??logging.properties?? to get only WARNING and ERROR in stderr, but there is no way for the rest (INFO, DEBUG...) in stdout.

          I have tried with:

          .level = INFO 
          handlers= java.util.logging.StreamHandler, java.util.logging.ConsoleHandler

          java.util.logging.StreamHandler.level = INFO
          java.util.logging.StreamHandler.formatter = java.util.logging.SimpleFormatter
          java.util.logging.ConsoleHandler.level = WARNING
          java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

          and many other ways, without success. 

            eficode Eficode
            geiser Sergio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: