|
@@ -6,19 +6,14 @@ import com.aliyun.openservices.aliyun.log.producer.ProducerConfig;
|
|
|
import com.aliyun.openservices.aliyun.log.producer.ProjectConfig;
|
|
|
import com.aliyun.openservices.aliyun.log.producer.errors.ProducerException;
|
|
|
import com.aliyun.openservices.log.common.LogItem;
|
|
|
-import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.sxtvs.open.core.auth.HttpContextUtil;
|
|
|
import jakarta.annotation.PostConstruct;
|
|
|
import lombok.SneakyThrows;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
-import org.springframework.web.context.request.RequestAttributes;
|
|
|
-import org.springframework.web.context.request.RequestContextHolder;
|
|
|
|
|
|
import java.io.PrintWriter;
|
|
|
import java.io.StringWriter;
|
|
|
import java.util.Map;
|
|
|
-import java.util.Optional;
|
|
|
|
|
|
@Component
|
|
|
public class AliyunLogger {
|
|
@@ -28,8 +23,6 @@ public class AliyunLogger {
|
|
|
|
|
|
private final String app = "open";
|
|
|
|
|
|
- @Autowired
|
|
|
- private ObjectMapper objectMapper;
|
|
|
|
|
|
@PostConstruct
|
|
|
public void init() {
|