Re: Setting logging level to DEBUG
Antoine Levy-Lambert <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Brian, On 3/9/11 6:20 PM, Wallace, Brian (Snapfish - SF) wrote: > > Would anyone be able to tell me how I can change the logging level of > Cruise Control? I would like to log at the DEBUG level, but I can't > get anything more than INFO. > > > > I've tried setting CC_OPTS="-debug" (in cruisecontrol.sh) when > starting CruiseControl, but this does not seem to work. > This is documented online [1]. cruisecontrol.sh support a -log4jconfig command line argument followed by a URL so like file:///C:/Program%32Files/CruiseControl/log4j.xml If you are using CruiseControl under Windows as a service, you can add command line arguments in wrapper.conf I am using this on my project wrapper.java.additional.2=-Dlog4j.configuration=file:log4j.properties because I did this customisation before the -log4jconfig command line argument became available. Also to create a log4j.properties file doing what you want, extract the log4j.properties of cruisecontrol from the root directory of cruisecontrol.jar (I guess it is there) and replace INFO by DEBUG in the second line which read log4j.logger.net.sourceforge.cruisecontrol=INFO Regards, > > > > Brian > > Antoine [1] http://cruisecontrol.sourceforge.net/main/install.html#startupcruisecontrol ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user