package xtools.boot.log.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>Title : LogBusConfig</p>
 * <p>Description : LogBusConfig</p>
 * <p>DevelopTools : Idea_x64_v2026.1</p>
 * <p>DevelopSystem : macOS Sequoia 15.7.5</p>
 * <p>Company : org.xujun</p>
 *
 * @author : XuJun
 * @version : 5.0.0
 * @date : 2026/2/3 15:07
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "sys.log.bus")
public class LogBusConfig {

    /**
     * 是否打印日志
     */
    private Boolean print = false;

    /**
     * 包含的堆栈信息(开始的包名)
     */
    private List<String> includeStackTrace = new ArrayList<>();

    /**
     * 日志项最大长度
     */
    private Integer logDataMaxLength = -1;
}
