use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method sql_logger_level_changes_with_ce_property_and_is_case_insensitive.
@Test
public void sql_logger_level_changes_with_ce_property_and_is_case_insensitive() {
props.set("sonar.log.level.ce", "TrACe");
LoggerContext ctx = underTest.configure(props);
verifySqlLogLevel(ctx, Level.TRACE);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method configure_defines_hardcoded_levels_unchanged_by_global_property.
@Test
public void configure_defines_hardcoded_levels_unchanged_by_global_property() {
props.set("sonar.log.level", "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_changes_with_global_property_and_is_case_insensitive.
@Test
public void sql_logger_level_changes_with_global_property_and_is_case_insensitive() {
props.set("sonar.log.level", "InFO");
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 jmx_logger_level_changes_with_ce_jmx_property_and_is_case_insensitive.
@Test
public void jmx_logger_level_changes_with_ce_jmx_property_and_is_case_insensitive() {
props.set("sonar.log.level.ce.jmx", "debug");
LoggerContext ctx = underTest.configure(props);
verifyJmxLogLevel(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_global_property.
@Test
public void sql_logger_level_is_configured_from_web_sql_property_over_global_property() {
props.set("sonar.log.level.web.sql", "debug");
props.set("sonar.log.level", "TRACE");
LoggerContext ctx = underTest.configure(props);
verifySqlLogLevel(ctx, Level.DEBUG);
}
Aggregations