If Jenkins is ordered to shut down/restart, the user who ordered the restart 
should already get logged to jenkins.model.Jenkins:

https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/Jenkins.java#L3354
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/Jenkins.java#L3393

Of course, if the user logs into the server and restarts the Jenkins service, 
it won't get logged this way. There's no way for Jenkins to determine who does 
it either.

On 31.03.2015, at 19:37, Greg Nifor <whitehotentr...@gmail.com> wrote:

> Is there a way to log who ordered a Jenkins restart? The log right now just 
> denotes that a restart happened. I would like something like
> 
> Mar 30, 2015 9:57:01 PM INFO: Safe-restart started by GregWringle.
> 
> 
> 
> Is there anyway I can implement this?
> 
> 
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/bcca4940-e2dd-4540-9700-ab2f437c3a84%40googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/BC927E6E-9F57-4D70-8780-9CDDF6921796%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to