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

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

XMLWordPrintable

    • 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. 

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

              Created:
              Updated: