Maven Repository - Reactive Logstash Logging Spring Boot Starter
arkadiuszSzast opened this issue · comments
Arkadiusz commented
Version published on the Maven Repository is probably outdated. I checked it and there is no option to configure it using logging.logstash
properties. I guess the published version is: 15cfe1d. Can you check it?
Wei Yuan Cho commented
Hi I notice the same issue for 1.0.0.RELEASE on mvnrepository, which isn't the same as master
package pl.piomin.logging.reactive.config;
import org.springframework.beans.factory.annotation.Value;
import pl.piomin.logging.reactive.filter.ReactiveSpringLoggingFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import pl.piomin.logging.reactive.util.UniqueIDGenerator;
@Configuration
public class ReactiveSpringLoggingAutoConfiguration {
private static final String LOGSTASH_APPENDER_NAME = "LOGSTASH";
private String url = "localhost:8500";
private String ignorePatterns;
private boolean logHeaders;
private boolean useContentLength;
private String trustStoreLocation;
private String trustStorePassword;
@Value("${spring.application.name:-}")
String name;
@Bean
public UniqueIDGenerator generator() {
return new UniqueIDGenerator();
}
@Bean
public ReactiveSpringLoggingFilter reactiveSpringLoggingFilter() {
return new ReactiveSpringLoggingFilter(generator(), ignorePatterns, logHeaders, useContentLength);
}
}
Wei Yuan Cho commented
@piomin any update on this (to publish reactive version to maven central?)
Piotr Mińkowski commented
Hi. Yes. I have just published version 1.3.0 on Maven Central. Could you verify that it solves your errors?
Wei Yuan Cho commented
Looks good to me @piomin , thanks for that