com.itcoon.common.tracelog.component.HttpTraceLogger Maven / Gradle / Ivy
package com.itcoon.common.tracelog.component;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.itcoon.common.tracelog.config.properties.HttpTraceLogProperties;
import com.itcoon.common.tracelog.enums.LogSegment;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.*;
public class HttpTraceLogger implements TraceLogResolver {
public static final Logger log = LoggerFactory.getLogger(HttpTraceLog.class);
@Autowired
private ObjectMapper objectMapper;
@Autowired
private HttpTraceLogProperties properties;
@Override
public void resolve(HttpTraceLog traceLog){
List segments = properties.getSegments();
StringJoiner joiner = new StringJoiner(",");
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy