|
Hudson uses java.util.logging for logging. The j.u.l system by default sends every log above INFO to stdout, but unfortunately, most servlet containers alter this behavior, making it difficult for us to tell you exactly where you should look at. Also, they tend to bundle all the logs from the entire JVM into a single place, making it difficult to follow a particular aspect of the system. Because of these reasons, Hudson is equipped with a GUI for configuring/collecting/reporting log records of your choosing. This page shows you how to do this. First, select the "system log" from the "Manage Hudson" page:
From there, you can create a custom log recorder, which helps you group relevant logs together while filtering out the noise.
Choose a name that makes sense to you.
You'll be then asked to configure loggers and their levels whose output you'd like to collect. Depending on which part of Hudson you monitor, you'll need to specify different loggers. Tell us the symptom of your problem in the users list and we should be able to tell you where you need to look at. Also, this is really just a wrapper around the java.util.logging package, so if you program in Java, you might be able to guess what to look at.
Once the set up is complete, Hudson will start collecting data. The collected logs are available from the web UI. |





Comments (4)
Apr 03, 2009
Thomas Guieu says:
I don't really know where to tell this, but as it's this page that shows it, I'l...I don't really know where to tell this, but as it's this page that shows it, I'll post there.
This new way of putting things under the lights (the red rectangles) is really easy to follow, we can instantly see where to change things. Please continue with this.
May 26, 2009
Kohsuke Kawaguchi says:
Thanks! We'll keep doing that.Thanks! We'll keep doing that.
Jun 16, 2009
Ankit Mittal says:
I am not sure why , but the Logs that I get when my build fails are different (m...I am not sure why , but the Logs that I get when my build fails are different (more detailed), rather than the logs I can see on the output console in Hudson ,How can I see full logs on output console?
I tried using logger utility to see more logs for Sonar , but it seems its not working out , can you tell me how should I configure logger to get more logs on Sonar ?
I want to add an environment variable to Hudson that I can set using a shell script , how can I do that ?
Sep 17
Karl Baum says:
Viewing logs through the web is not always ideal. Can these logs also be w...Viewing logs through the web is not always ideal. Can these logs also be written to the filesystem?