
io.smilego.tenant.logging.LoggingConfiguration Maven / Gradle / Ivy
package io.smilego.tenant.logging;
import io.smilego.tenant.configuration.TenantApplicationConfiguration;
import io.smilego.tenant.logging.http.HttpLogFilter;
import io.smilego.tenant.logging.http.HttpLogAspect;
import io.smilego.tenant.logging.redis.RedisLogAspect;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class LoggingConfiguration {
@Value("${espheroLoggingContext.enabled:false}")
private boolean espheroLoggingContext;
@Bean
public HttpLogFilter httpLogFilter(){
return new HttpLogFilter(espheroLoggingContext);
}
@Bean
public HttpLogAspect httpLogAspect(TenantApplicationConfiguration tenantApplicationConfiguration){
return new HttpLogAspect(tenantApplicationConfiguration);
}
@Bean
public RedisLogAspect redisLogAspect(){
return new RedisLogAspect();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy