configure the jenkins logger

This commit adds a logging configuration file for jenkins so
that we can persist the jenkins logger configuration across
restarts.

This commit also adds a logger configuration,
"org.gearman.session.logger" to "WARNING"

Change-Id: I4cf886a93f33bd153a6e3f81534df582425bd8f5
This commit is contained in:
Khai Do 2013-07-23 11:59:46 -07:00
parent 1d1e61632f
commit 3bba24b013
2 changed files with 36 additions and 0 deletions

28
files/logger.conf Normal file
View File

@ -0,0 +1,28 @@
# Properties file which configures the operation of the JDK
# logging facility.
# reference: http://www.javapractices.com/topic/TopicAction.do?Id=143
# The system will look for this config file, first using
# a System property specified at startup:
#
# >java -Djava.util.logging.config.file=myLoggingConfigFilePath
#
# If this property is not specified, then the config file is
# retrieved from its default location at:
#
# JDK_HOME/jre/lib/logging.properties
# Global logging properties.
# ------------------------------------------
# The set of handlers to be loaded upon startup.
# Comma-separated list of class names.
# (? LogManager docs say no comma here, but JDK example has comma.)
handlers=java.util.logging.ConsoleHandler
# Loggers
# ------------------------------------------
# Loggers are usually attached to packages.
# Here, the level for each package is specified.
# The global level is used by default, so levels
# specified here simply act as an override.
org.gearman.session.logger.level=WARNING

View File

@ -187,6 +187,14 @@ class jenkins::master(
require => File['/var/lib/jenkins/plugins/simple-theme-plugin'],
}
file { '/var/lib/jenkins/logger.conf':
ensure => present,
owner => 'jenkins',
group => 'nogroup',
source => 'puppet:///modules/jenkins/logger.conf',
require => File['/var/lib/jenkins'],
}
file { '/var/lib/jenkins/plugins/simple-theme-plugin/title.png':
ensure => present,
owner => 'jenkins',