`.level=TRACE` is not valid level for java until logging so will probably
be ignored or use the default (info).

Use `FINEST` (this will likely severely hamper Jenkins startup,  you should
target specific classes or packages instead)

https://docs.oracle.com/javase/8/docs/api/java/util/logging/class-use/Level.html
has the defined levels



On Tue, 25 Jul 2023, 14:11 Matthias Apitz, <g...@unixarea.de> wrote:

>
> Hello,
>
> This is with jenkins-2.401.2-1.1.noarch.rpm on a RH8. I'm in the need to
> debug the start of Jenkins, but get only INFO messages. I'm using as
> config:
>
> # grep -- -D /usr/lib/systemd/system/jenkins.service
> Environment="JAVA_OPTS=-Dlog4j.debug
> -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties
> -Djava.awt.headless=true"
>
> # cat /var/lib/jenkins/logging.properties
> .level=TRACE
> handlers=java.util.logging.ConsoleHandler
>
> java.util.logging.ConsoleHandler.level=FINEST
>
> java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
>
> The started Jenkins runs with the correct -D... flags:
>
> # ps ax | grep java
> 2666762 ?        Ssl    0:27 /usr/bin/java -Dlog4j.debug
> -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties
> -Djava.awt.headless=true -jar /usr/share/java/jenkins.war
> --webroot=/var/cache/jenkins/war --logfile=/var/log/jenkins/jenkins.log
> --httpPort=8080
>
> But the file /var/log/jenkins/jenkins.log does not contain any DEBUG log
> lines, only the lines shown below.
>
> What I do wrong?
>
>         matthias
>
> Jul 25, 2023 2:53:35 PM winstone.Logger logInternal
> INFO: Beginning extraction from war file
> Jul 25, 2023 2:53:35 PM org.eclipse.jetty.server.handler.ContextHandler
> setContextPath
> WARNING: Empty contextPath
> Jul 25, 2023 2:53:35 PM org.eclipse.jetty.server.Server doStart
> INFO: jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git:
> 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 17.0.7+7-LTS
> Jul 25, 2023 2:53:36 PM
> org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet
> INFO: NO JSP Support for /, did not find
> org.eclipse.jetty.jsp.JettyJspServlet
> Jul 25, 2023 2:53:36 PM
> org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
> INFO: Session workerName=node0
> Jul 25, 2023 2:53:36 PM hudson.WebAppMain contextInitialized
> INFO: Jenkins home directory: /var/lib/jenkins found at:
> EnvVars.masterEnvVars.get("JENKINS_HOME")
> Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.handler.ContextHandler
> doStart
> INFO: Started w.@5ca17ab0{Jenkins
> v2.401.2,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
> Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.AbstractConnector doStart
> INFO: Started ServerConnector@33b37288{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
> Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.Server doStart
> INFO: Started Server@6b1274d2{STARTING}[10.0.13,sto=0] @1686ms
> Jul 25, 2023 2:53:36 PM winstone.Logger logInternal
> INFO: Winstone Servlet Engine running: controlPort=disabled
> Jul 25, 2023 2:53:37 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Started initialization
> Jul 25, 2023 2:53:37 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Listed all plugins
> Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Prepared all plugins
> Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Started all plugins
> Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Augmented all extensions
> Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained
> INFO: System config loaded
> Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained
> INFO: System config adapted
> Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Loaded all jobs
> Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Configuration for all jobs updated
> Jul 25, 2023 2:53:38 PM jenkins.install.SetupWizard init
> INFO:
>
> *************************************************************
> *************************************************************
> *************************************************************
>
> Jenkins initial setup is required. An admin user has been created and a
> password generated.
> Please use the following password to proceed to installation:
>
> 74565d94443f4ed08790bf86da7953fd
>
> This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
>
> *************************************************************
> *************************************************************
> *************************************************************
>
> Jul 25, 2023 2:53:51 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Completed initialization
> Jul 25, 2023 2:53:51 PM hudson.lifecycle.Lifecycle onReady
> INFO: Jenkins is fully up and running
>
>
>
> --
> Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/
> +49-176-38902045
> Public GnuPG key: http://www.unixarea.de/key.pub
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/ZL/J6kYrC2/z0lLE%40pureos
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzq3pfqsZyLtoy3Gptf2cmeWBwZz3MwgYrS7m5WZ%2BrLSGkVFQ%40mail.gmail.com.

Reply via email to