From 03d48e10b34f3c3efb396d0fd64e85f7c1adfbde Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Mon, 28 Nov 2016 12:40:47 +0100 Subject: [PATCH] SONAR-8417 control auth event log with sonar.log.level.web.auth.event --- .../src/main/java/org/sonar/process/logging/LogDomain.java | 3 ++- .../java/org/sonar/server/app/WebServerProcessLogging.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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)); } -- 2.39.5