Re: Logger to feature mapping

2014-01-17 Thread Balaji Parthasarathy
Forwarding Daniel's reply to the mailing list in case it helps someone else
in the future. Sorry if I should not have done that.

Balaji

On Fri, Jan 17, 2014 at 10:50 AM, Daniel Beck  wrote:

>
> The source code, I'm afraid (but you'll learn how to script and extend
> Jenkins in the process, so it could be worth the effort). Start with
> http://javadoc.jenkins-ci.org (Javadoc of core) and look for something
> that looks like it could be relevant -- hudson.model and jenkins.model are
> good choices to start looking. Then check the source code (
> https://github.com/jenkinsci/jenkins/tree/master/core/src/main/java/)
> whether there are related log statements.
>
> http://sorcerer.jenkins-ci.org/ might be a useful alternative to the
> above combination, but it's stuck at version 1.513.
>
> If you want to know about a particular plugin: Most plugins are quite
> small, so the source should be easy enough to navigate. For commercial
> Cloudbees plugins, there is
> http://jenkins-enterprise-javadocs.apps.cloudbees.com/
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Logger to feature mapping

2014-01-17 Thread Balaji Parthasarathy
Thanks a lot Daniel. I'll give that a try. Just for academic purpose, if
indeed I want to know the logger to feature mapping, where would I look?

Thanks
Balaji


On Thu, Jan 16, 2014 at 5:58 PM, Daniel Beck  wrote:

> Logging wouldn't help for these, as these actions don't seem to get logged.
>
> But check out the Audit Trail Plugin, which records the most important
> user actions. To record enabling/disabling project via the buttons for it
> (and not just users submitting the job config page), and add 'enable' and
> 'disable' to the regular expression of what it logs in the Advanced
> configuration.
>
> Unfortunately, Audit Trail only records e.g. that a user submitted a
> config form ('/job/jobname/configSubmit by danielbeck') and not _what_ was
> changed. This is where the Job Config History Plugin helps. It logs all
> changes to job configurations in detail, and displays them as diffs of the
> job config XML.
>
> On 17.01.2014, at 01:19, Balaji Parthasarathy  wrote:
>
> > Hi,
> > In my Jenkins instance, if I want to know things like
> >
> > 1.  Who disabled a job and when?
> >
> > 2.  When was it re-enabled? And who?
> >
> > 3.  If a job config was changed, who changed it and what was changed?
> >
> >
> >
> > I need to enable logging per feature. This URL
> https://wiki.jenkins-ci.org/display/JENKINS/Logger+Configuration says
> "Refer to Hudson source code or the mailing list archive for what logger
> corresponds to what feature". Can someone give quick pointers to logger
> names for the above use cases? BTW, was this enhancement request
> implemented -
> http://jenkins-ci.361315.n4.nabble.com/Issue-4068-New-Provide-a-list-of-available-loggers-with-a-short-description-tt409405.html#none
> >
> > I searched the mailing lists and general google search but did not get
> any hits.
> >
> >
> >
> > Thanks
> >
> > Balaji
> >
> >
> > --
> > 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.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Logger to feature mapping

2014-01-16 Thread Daniel Beck
Logging wouldn't help for these, as these actions don't seem to get logged.

But check out the Audit Trail Plugin, which records the most important user 
actions. To record enabling/disabling project via the buttons for it (and not 
just users submitting the job config page), and add 'enable' and 'disable' to 
the regular expression of what it logs in the Advanced configuration.

Unfortunately, Audit Trail only records e.g. that a user submitted a config 
form ('/job/jobname/configSubmit by danielbeck') and not _what_ was changed. 
This is where the Job Config History Plugin helps. It logs all changes to job 
configurations in detail, and displays them as diffs of the job config XML.

On 17.01.2014, at 01:19, Balaji Parthasarathy  wrote:

> Hi,
> In my Jenkins instance, if I want to know things like
> 
> 1.  Who disabled a job and when?
> 
> 2.  When was it re-enabled? And who?
> 
> 3.  If a job config was changed, who changed it and what was changed?
> 
> 
> 
> I need to enable logging per feature. This URL 
> https://wiki.jenkins-ci.org/display/JENKINS/Logger+Configuration says "Refer 
> to Hudson source code or the mailing list archive for what logger corresponds 
> to what feature". Can someone give quick pointers to logger names for the 
> above use cases? BTW, was this enhancement request implemented - 
> http://jenkins-ci.361315.n4.nabble.com/Issue-4068-New-Provide-a-list-of-available-loggers-with-a-short-description-tt409405.html#none
> 
> I searched the mailing lists and general google search but did not get any 
> hits.
> 
> 
> 
> Thanks
> 
> Balaji
> 
> 
> -- 
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Logger to feature mapping

2014-01-16 Thread Balaji Parthasarathy
Hi,
In my Jenkins instance, if I want to know things like

1.  Who disabled a job and when?

2.  When was it re-enabled? And who?

3.  If a job config was changed, who changed it and what was changed?


I need to enable logging per feature. This URL 
https://wiki.jenkins-ci.org/display/JENKINS/Logger+Configuration says 
"Refer to Hudson source code or the mailing list archive for what logger 
corresponds to what feature". Can someone give quick pointers to logger 
names for the above use cases? BTW, was this enhancement request 
implemented - 
http://jenkins-ci.361315.n4.nabble.com/Issue-4068-New-Provide-a-list-of-available-loggers-with-a-short-description-tt409405.html#none

I searched the mailing lists and general google search but did not get any 
hits.


Thanks

Balaji

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.