use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class WebServerProcessLoggingTest method es_logger_level_is_configured_from_web_property_over_global_property.
@Test
public void es_logger_level_is_configured_from_web_property_over_global_property() {
props.set("sonar.log.level.web", "debug");
props.set("sonar.log.level", "TRACE");
LoggerContext ctx = underTest.configure(props);
verifyEsLogLevel(ctx, Level.DEBUG);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class WebServerProcessLoggingTest method root_logger_level_is_configured_from_web_property_over_global_property.
@Test
public void root_logger_level_is_configured_from_web_property_over_global_property() {
props.set("sonar.log.level", "TRACE");
props.set("sonar.log.level.web", "DEBUG");
LoggerContext ctx = underTest.configure(props);
verifyRootLogLevel(ctx, Level.DEBUG);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class WebServerProcessLoggingTest method sql_logger_level_is_configured_from_web_sql_property_over_web_property.
@Test
public void sql_logger_level_is_configured_from_web_sql_property_over_web_property() {
props.set("sonar.log.level.web.sql", "debug");
props.set("sonar.log.level.web", "TRACE");
LoggerContext ctx = underTest.configure(props);
verifySqlLogLevel(ctx, Level.DEBUG);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class WebServerProcessLoggingTest method sql_logger_level_changes_with_web_sql_property_and_is_case_insensitive.
@Test
public void sql_logger_level_changes_with_web_sql_property_and_is_case_insensitive() {
props.set("sonar.log.level.web.sql", "debug");
LoggerContext ctx = underTest.configure(props);
verifySqlLogLevel(ctx, Level.DEBUG);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class WebServerProcessLoggingTest method sql_logger_level_defaults_to_INFO_if_web_sql_property_has_invalid_value.
@Test
public void sql_logger_level_defaults_to_INFO_if_web_sql_property_has_invalid_value() {
props.set("sonar.log.level.web.sql", "DodoDouh!");
LoggerContext ctx = underTest.configure(props);
verifySqlLogLevel(ctx, Level.INFO);
}
Aggregations