piomin / spring-boot-logging

A library for logging HTTP request/response for Spring Boot application and integration with Elastic Stack

Home Page:https://piotrminkowski.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maven Repository - Reactive Logstash Logging Spring Boot Starter

arkadiuszSzast opened this issue · comments

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?

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);
	}

}

@piomin any update on this (to publish reactive version to maven central?)

can you provide any update? @piomin

Hi. Yes. I have just published version 1.3.0 on Maven Central. Could you verify that it solves your errors?

Looks good to me @piomin , thanks for that