package cn.reghao.autodop.common.dagent.app.log;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 应用日志配置
 *
 * @author reghao
 * @date 2020-05-19 09:24:41
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class LogConfig {
    private String type;
    private String level;
    // 相对于 runningHome
    private String logPath;
    // 判断是日志目录还是日志文件
    private Boolean isDir;

    public LogConfig(String type, String level, String logPath) {
        this.type = type;
        this.level = level;
        this.logPath = logPath;
        this.isDir =true;
    }
}
