use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method es_logger_level_is_configured_from_ce_es_property_over_ce_property.
@Test
public void es_logger_level_is_configured_from_ce_es_property_over_ce_property() {
props.set("sonar.log.level.ce.es", "debug");
props.set("sonar.log.level.ce", "TRACE");
LoggerContext ctx = underTest.configure(props);
verifyEsLogLevel(ctx, Level.DEBUG);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method configure_defines_hardcoded_levels_unchanged_by_ce_property.
@Test
public void configure_defines_hardcoded_levels_unchanged_by_ce_property() {
props.set("sonar.log.level.ce", "TRACE");
LoggerContext context = underTest.configure(props);
verifyImmutableLogLevels(context);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method sql_logger_level_defaults_to_INFO_if_ce_sql_property_has_invalid_value.
@Test
public void sql_logger_level_defaults_to_INFO_if_ce_sql_property_has_invalid_value() {
props.set("sonar.log.level.ce.sql", "DodoDouh!");
LoggerContext ctx = underTest.configure(props);
verifySqlLogLevel(ctx, Level.INFO);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method configure_defines_hardcoded_levels.
@Test
public void configure_defines_hardcoded_levels() {
LoggerContext context = underTest.configure(props);
verifyImmutableLogLevels(context);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method root_logger_level_changes_with_ce_property_and_is_case_insensitive.
@Test
public void root_logger_level_changes_with_ce_property_and_is_case_insensitive() {
props.set("sonar.log.level.ce", "debug");
LoggerContext ctx = underTest.configure(props);
verifyRootLogLevel(ctx, Level.DEBUG);
}
Aggregations