I am developing a plugin and I need to log events in different objects of my plugins. I have 2 objects that extend from Recorder and I use getLogger() method of BuildListener in the perform method of my Recorder to log the events that happen during the post-build action. However, I have other actions that plot and display static content and I have no access to BuildListener objects in those actions or in the objects that those actions use. I would like to know what is the right approach to log in the mentioned cases.

I have seen that java.Util.Logging.Logger is widely use in other plugins to log but this is actually logs to the server log file (logs/catalina.out in my case) and this is not the desired behavior for this plugin since I would like to present this output in a similar way that the console output action does for each build.

Any Ideas?

Best Regards

--
Esteban Angee Agudelo
Software Engineer
hello2morrow S.A.S
(574)5804555
[email protected]
http://www.hello2morrow.com

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


Reply via email to