use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method default_level_for_root_logger_is_INFO.
@Test
public void default_level_for_root_logger_is_INFO() {
LoggerContext ctx = underTest.configure(props);
verifyRootLogLevel(ctx, Level.INFO);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method es_logger_level_changes_with_ce_property_and_is_case_insensitive.
@Test
public void es_logger_level_changes_with_ce_property_and_is_case_insensitive() {
props.set("sonar.log.level.ce", "TrACe");
LoggerContext ctx = underTest.configure(props);
verifyEsLogLevel(ctx, Level.TRACE);
}
use of ch.qos.logback.classic.LoggerContext in project sonarqube by SonarSource.
the class CeProcessLoggingTest method sql_logger_level_is_configured_from_ce_property_over_global_property.
@Test
public void sql_logger_level_is_configured_from_ce_property_over_global_property() {
props.set("sonar.log.level.ce", "debug");
props.set("sonar.log.level", "TRACE");
LoggerContext ctx = underTest.configure(props);
verifySqlLogLevel(ctx, Level.DEBUG);
}
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_global_property.
@Test
public void es_logger_level_is_configured_from_ce_es_property_over_global_property() {
props.set("sonar.log.level.ce.es", "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 CeProcessLoggingTest method root_logger_level_is_configured_from_ce_property_over_global_property.
@Test
public void root_logger_level_is_configured_from_ce_property_over_global_property() {
props.set("sonar.log.level", "TRACE");
props.set("sonar.log.level.ce", "DEBUG");
LoggerContext ctx = underTest.configure(props);
verifyRootLogLevel(ctx, Level.DEBUG);
}
Aggregations