diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-22 21:09:45 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-27 12:29:27 +0200 |
commit | 7ed36fc7a331927153f99adf9683b5fe995851ea (patch) | |
tree | d57b0f9e4d9e45e07606b0454a40daf3bb39e99c /sonar-application/src | |
parent | 0d6868ad3bee64df7020d2b0a72b4dcdb90e0a3f (diff) | |
download | sonarqube-7ed36fc7a331927153f99adf9683b5fe995851ea.tar.gz sonarqube-7ed36fc7a331927153f99adf9683b5fe995851ea.zip |
SONAR-6799 SONAR-6232 compute engine logs
- add WS api/ce/logs
- add boolean field 'logs' to the responses of the WS that return tasks
- purge log files (max nb of files per project can be configured)
Diffstat (limited to 'sonar-application/src')
-rw-r--r-- | sonar-application/src/main/java/org/sonar/application/AppLogging.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/AppLogging.java b/sonar-application/src/main/java/org/sonar/application/AppLogging.java index 7787e5ea8a3..86afe2f7860 100644 --- a/sonar-application/src/main/java/org/sonar/application/AppLogging.java +++ b/sonar-application/src/main/java/org/sonar/application/AppLogging.java @@ -27,7 +27,6 @@ import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.Appender; import ch.qos.logback.core.ConsoleAppender; import ch.qos.logback.core.FileAppender; - import org.slf4j.LoggerFactory; import org.sonar.process.LogbackHelper; import org.sonar.process.Props; @@ -71,7 +70,7 @@ class AppLogging { } private void configureConsole(LoggerContext loggerContext) { - ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(loggerContext, CONSOLE_APPENDER, "%msg%n"); + ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(loggerContext, CONSOLE_APPENDER, "%msg%n", null); Logger consoleLogger = loggerContext.getLogger(CONSOLE_LOGGER); consoleLogger.setAdditive(false); consoleLogger.addAppender(consoleAppender); @@ -96,7 +95,7 @@ class AppLogging { } private void configureRoot(LoggerContext loggerContext) { - ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(loggerContext, "ROOT_CONSOLE", APP_PATTERN); + ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(loggerContext, "ROOT_CONSOLE", APP_PATTERN, null); Logger rootLogger = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME); rootLogger.setLevel(Level.INFO); rootLogger.addAppender(consoleAppender); |