diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-11-28 12:40:47 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-12-14 17:09:10 +0100 |
commit | 03d48e10b34f3c3efb396d0fd64e85f7c1adfbde (patch) | |
tree | 3e82dd9e480d7ae1e1814e4e1fb77c1db639ed10 | |
parent | f90e07c2758222d8756c5d22d1e48a6cd1c4b8ea (diff) | |
download | sonarqube-03d48e10b34f3c3efb396d0fd64e85f7c1adfbde.tar.gz sonarqube-03d48e10b34f3c3efb396d0fd64e85f7c1adfbde.zip |
SONAR-8417 control auth event log with sonar.log.level.web.auth.event
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/logging/LogDomain.java | 3 | ||||
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/app/WebServerProcessLogging.java | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/logging/LogDomain.java b/server/sonar-process/src/main/java/org/sonar/process/logging/LogDomain.java index 5a4198363b8..1385be8cae9 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/logging/LogDomain.java +++ b/server/sonar-process/src/main/java/org/sonar/process/logging/LogDomain.java @@ -22,7 +22,8 @@ package org.sonar.process.logging; public enum LogDomain { SQL("sql"), ES("es"), - JMX("jmx"); + JMX("jmx"), + AUTH_EVENT("auth.event"); private final String key; diff --git a/server/sonar-server/src/main/java/org/sonar/server/app/WebServerProcessLogging.java b/server/sonar-server/src/main/java/org/sonar/server/app/WebServerProcessLogging.java index 149d94be91a..ab3f0364cc4 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/app/WebServerProcessLogging.java +++ b/server/sonar-server/src/main/java/org/sonar/server/app/WebServerProcessLogging.java @@ -40,6 +40,7 @@ public class WebServerProcessLogging extends ServerProcessLogging { protected void extendLogLevelConfiguration(LogLevelConfig.Builder logLevelConfigBuilder) { logLevelConfigBuilder.levelByDomain("sql", ProcessId.WEB_SERVER, LogDomain.SQL); logLevelConfigBuilder.levelByDomain("es", ProcessId.WEB_SERVER, LogDomain.ES); + logLevelConfigBuilder.levelByDomain("auth.event", ProcessId.WEB_SERVER, LogDomain.AUTH_EVENT); JMX_RMI_LOGGER_NAMES.forEach(loggerName -> logLevelConfigBuilder.levelByDomain(loggerName, ProcessId.WEB_SERVER, LogDomain.JMX)); } |