All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.web.model.dao.mongodb.LogsCollection Maven / Gradle / Ivy

The newest version!
package com.arextest.web.model.dao.mongodb;

import java.util.List;
import java.util.Map;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author b_yu
 * @since 2023/2/9
 */
@Data
@Document(collection = "logs")
public class LogsCollection {

  @Id
  private String id;
  private String level;
  private String loggerName;
  private String message;
  private long threadId;
  private String threadName;
  private int threadPriority;
  private long millis;
  private Map contextMap;
  private Unit source;
  private Thrown thrown;

  @Data
  public static final class Unit {

    private String className;
    private String methodName;
    private String fileName;
    private int lineNumber;
  }

  @Data
  public static final class Thrown {

    private String type;
    private String message;
    private List stackTrace;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy