How do I create a logger in Jenkins for troubleshooting and diagnostic information? James Brown July 13, 2022 11:13 Updated The content of this article has moved to the new documentation site. Related articles Configure Loggers for Jenkins Groovy to list all jobs How to configure Loggers for Jenkins Agents Create a logger to log login attempts Navigation in Jenkins fails with 'No valid crumb was included in request' errors Comments 6 comments Sort by Date Votes Sorin Sbarnea July 18, 2017 11:45 This doesn't tell anything about log files. As part of the debugging process we need to be able to save specialized logs like this to files. Where are these logs saved and that would be their filenames? It is essential to have lots that survive Jenkins restart. 0 Arnaud Héritier July 18, 2017 19:59 Hi Sorin, If you have the Support plugin installed, they'll be automatically stored under $JENKINS_HOME/logs/custom/ Best regards 1 Chris Weiss October 27, 2017 16:44 Logs created by this function turn over quickly - Is there a way to increase the log size or (better yet) pipe the logs to an external logger? 1 Denys Digtiar October 30, 2017 00:10 Hi Chris, Jenkins wiki also provides a way to make logs available outside of the web UI. It should probably give you enough flexibility to achieve what you need. 0 Steven Christenson October 16, 2021 15:16 Question - that's not entirely clear from this description, can the Log Manager be used to SUPPRESS logs? The build history manager plugin spews hundreds of INFO level logs for every build and this swamps our logs (See https://github.com/jenkinsci/build-history-manager-plugin/issues/49)The author of the plugin feels that excessive output is a "valuable feature". So the question is, if we create a rule to explicitly RAISE the log level will that prevent the spew? Or will that simply ADD more logs?We will try the suppression technique, but I thought it might be useful for readers to understand if the INVERSE of logging works, too. 0 Denys Digtiar March 09, 2022 05:25 The primary purpose of this feature temporarily increasing the log level for specific loggers of interest. How to change the default or package log levels describes how to set default log levels of loggers. This works well in cases where default logging output is excessive. 0 Please sign in to leave a comment.