io.hawt.springboot.HawtioLogAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hawtio-springboot Show documentation
Show all versions of hawtio-springboot Show documentation
Hawtio :: Spring Boot 2.x starter
The newest version!
package io.hawt.springboot;
import io.hawt.log.logback.LogbackLogQuery;
import io.hawt.log.support.LogQuerySupport;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
/**
* Autoconfiguration for Hawtio Log.
*/
@AutoConfiguration
@ConditionalOnClass(LogQuerySupport.class)
public class HawtioLogAutoConfiguration {
@Bean
@ConditionalOnMissingBean
@ConditionalOnClass(LogbackLogQuery.class)
public LogbackLogQuery logbackLogQuery() {
LogbackLogQuery logQuery = new LogbackLogQuery();
logQuery.start();
return logQuery;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy