diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-10-14 18:16:16 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-10-14 18:19:15 +0200 |
commit | 12c638ba9652a7ff7209484dc3ea66c7f565c567 (patch) | |
tree | e6946f36928a34fb9ec993d5ee95c3f5473bea79 /sonar-server | |
parent | b2f493c8a53ec9aca8a4172b7895e397c8a48366 (diff) | |
download | sonarqube-12c638ba9652a7ff7209484dc3ea66c7f565c567.tar.gz sonarqube-12c638ba9652a7ff7209484dc3ea66c7f565c567.zip |
SONAR-4675 remove ability to customize logback-access.xml
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/config/logback-access.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/config/logback-access.xml b/sonar-server/src/main/webapp/WEB-INF/config/logback-access.xml new file mode 100644 index 00000000000..e516fcfbbea --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/config/logback-access.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<!-- + + Log HTTP requests in logs/access.log. For internal use only. + + See http://logback.qos.ch/access.html#configuration and Tomcat configuration in sonar-application. + +--> + +<configuration debug="false"> + + <!-- Required for performance reason. See http://www.slf4j.org/legacy.html#jul-to-slf4j --> + <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/> + + <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <file>${SONAR_HOME}/logs/access.log</file> + <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> + <param name="FileNamePattern" value="${SONAR_HOME}/logs/access.%i.log"/> + <param name="MinIndex" value="1"/> + <param name="MaxIndex" value="3"/> + </rollingPolicy> + <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> + <param name="MaxFileSize" value="5MB"/> + </triggeringPolicy> + <encoder> + <pattern>combined</pattern> + </encoder> + </appender> + + <appender-ref ref="FILE" /> +</configuration> |