Hi, I've been able to follow the instructions @ https://wiki.jenkins-ci.org/display/JENKINS/Logging to create a log specifically for my plugin. But I think I want my log messages to also be logged in the Jenkins log. If a user of a plugin encounters a problem that was unhandled by the plugin developer, and it only happens once, what is the strategy for capturing the correct information for the user to open an issue? I'd like to be able to log a stack trace at that point if the issue is severe. If it only happens once, or is very difficult to reproduce then it is too late to tell the user to add a logger and try again, and the stack trace will be lost.
Thanks in advance, Scott On Monday, October 29, 2012 11:20:49 AM UTC-4, mike wrote: > > Thanks that helped. > > br, > > //mike > > On Monday, October 29, 2012 3:37:31 PM UTC+1, kinow wrote: >> >> Hi Mike, >> >> You have to create a logger for your plug-in with the right level. >> >> I believe this will help you: >> https://wiki.jenkins-ci.org/display/JENKINS/Logging >> >> Cheers, >> >> Bruno P. Kinoshita >> http://kinoshita.eti.br >> http://tupilabs.com >> >> >> >________________________________ >> > From: mike <[email protected]> >> >To: [email protected] >> >Sent: Monday, 29 October 2012 12:33 PM >> >Subject: I cannot find the logging for my plugin >> > >> > >> >Hi, >> > >> >I have made a plugin ( that works most of the time). I have added >> logging using: >> > >> >private static final Logger LOG = Logger.getLogger(TestResults.class >> > .getName()); >> > >> > LOG.info("matchLevel() totalValue "+totalValue.toString()); >> > >> >I checked the log in Jenkins ( I know the code has been executed) but I >> cannot find this output but I find other INFO traces: >> > >> > >> >INFO: Completed initialization >> >Oct 29, 2012 12:14:24 PM jenkins.InitReactorRunner$1 onAttained >> INFO: Loaded all jobs >> >Oct 29, 2012 12:13:21 PM jenkins.InitReactorRunner$1 onAttained >> INFO: Augmented all extensions >> >Oct 29, 2012 12:13:21 PM jenkins.InitReactorRunner$1 onAttained >> INFO: Started all plugins >> >Oct 29, 2012 12:13:21 PM jenkins.InitReactorRunner$1 onAttained >> INFO: Prepared all plugins >> >Oct 29, 2012 12:13:10 PM jenkins.InitReactorRunner$1 onAttained >> INFO: Listed all plugins >> > >> >How come I do not find the traces for my plugin in Jenkins log? Do I >> need to do anything in Jenkins to enable them? >> > >> >br, >> > >> >//Mike >> > >> > >> > >> > >> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
