There is no way to disable this. I'd just rip out the 
AuditTrailRunListener.java class, then nobody should call 
AuditTrailPlugin.onStarted(Run).

On 03.07.2014, at 17:44, James Nord (jnord) <[email protected]> wrote:

> Hi all,
>  
> I'm experimenting with the audit trail plugin but for the life of me I can't 
> work out how to not get it to spam the logs with build started events.
>  
> The config (XML) is as follows
> <hudson.plugins.audit__trail.AuditTrailPlugin plugin="[email protected]">
>   
> <pattern>.*/(?:configSubmit|doDelete|cancelQueue|stop|toggleLogKeep|doWipeOutWorkspace|createItem|createView|toggleOffline)</pattern>
>   <logBuildCause>true</logBuildCause>
>   <loggers>
>     <hudson.plugins.audit__trail.LogFileAuditLogger>
>       <log>/path/to/jenkins/data/logs/audit</log>
>       <limit>50</limit>
>       <count>2</count>
>     </hudson.plugins.audit__trail.LogFileAuditLogger>
>   </loggers>
> </hudson.plugins.audit__trail.AuditTrailPlugin>
>  
> Is there any way not to log build started events - or does this require a 
> code change?
>  
> e.g. my output of /path/to/jenkins/data/logs/audit  is
> Jul 3, 2014 4:14:38 PM job/foo/job/bar/job/commit/com.myco$my-app/ #57 Started
> Jul 3, 2014 4:14:43 PM /view/All/createItem by builduser
> Jul 3, 2014 4:14:47 PM job/foo/job/baz/job/baz-aat/job/commit/ #8 Started by 
> an SCM change
> Jul 3, 2014 4:14:49 PM /job/abc/configSubmit by builduser
> Jul 3, 2014 4:15:07 PM 
> job/foo/job/baz/job/baz-aat/job/commit/com.myco$baz-aat/ #8 Started
> Jul 3, 2014 4:15:12 PM 
> job/wibble/job/wibble-model/job/wibble-model/job/commit/com.myco.wibble.model$wibble-model-validation/
>  #201 Started
> Jul 3, 2014 4:15:12 PM 
> job/wibble/job/wibble-model/job/wibble-model/job/commit/com.myco.wibble.model$wibble-model-transformer/
>  #201 Started
> Jul 3, 2014 4:15:12 PM 
> job/wibble/job/wibble-model/job/wibble-model/job/commit/com.myco.wibble.model$wibble-model-model/
>  #201 Started
> Jul 3, 2014 4:15:12 PM 
> job/wibble/job/wibble-model/job/wibble-model/job/commit/com.myco.wibble.model$wibble-model-jms/
>  #201 Started
>  
> But I just want
> Jul 3, 2014 4:14:43 PM /view/All/createItem by builduser
> Jul 3, 2014 4:14:49 PM /job/abc/configSubmit by builduser
>  
> /James
> 
> -- 
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to