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:
parent
36aa8b22c5
commit
ac8142f6ee
28
modules/jenkins/files/logger.conf
Normal file
28
modules/jenkins/files/logger.conf
Normal 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
|
@ -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',
|
||||
|
@ -11,7 +11,7 @@ JAVA=/usr/bin/java
|
||||
#JAVA_ARGS="-Djava.net.preferIPv4Stack=true" # make jenkins listen on IPv4 address
|
||||
# Disable compression as zip deflation threads eat CPU time.
|
||||
# https://issues.jenkins-ci.org/browse/JENKINS-14362
|
||||
JAVA_ARGS="-Xloggc:/var/log/jenkins/gc.log -XX:+PrintGCDetails -Xmx12g -Dorg.kohsuke.stapler.compression.CompressionFilter.disabled=true"
|
||||
JAVA_ARGS="-Xloggc:/var/log/jenkins/gc.log -XX:+PrintGCDetails -Xmx12g -Dorg.kohsuke.stapler.compression.CompressionFilter.disabled=true -Djava.util.logging.config.file=/var/lib/jenkins/logger.conf"
|
||||
|
||||
PIDFILE=/var/run/jenkins/jenkins.pid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user