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

com.seven.cow.servlet.logging.properties.LoggingProperties Maven / Gradle / Ivy

There is a newer version: 0.2.4
Show newest version
package com.seven.cow.servlet.logging.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @description: 日志打印配置
 * @author:EDY
 * @date: 2021/11/24 18:12
 * @version: 1.0
 */
@ConfigurationProperties(prefix = "servlet.logging")
public class LoggingProperties {

    /**
     * 是否打印记录请求日志
     */
    private Boolean print = true;

    /**
     * aop 打印controller出入参
     */
    private Boolean aopPrint = true;

    /**
     * 不记录日志请求表达式列表
     */
    private List excludePatterns;

    /**
     * 日志打印 filter 排序号
     */
    private int order = 0;

    /**
     * 是否屏蔽异常请求状态码,默认不屏蔽 ,true:屏蔽只要不是200,都返回404
     */
    private boolean alwaysOk = false;

    public Boolean getPrint() {
        return print;
    }

    public void setPrint(Boolean print) {
        this.print = print;
    }

    public Boolean getAopPrint() {
        return aopPrint;
    }

    public void setAopPrint(Boolean aopPrint) {
        this.aopPrint = aopPrint;
    }

    public List getExcludePatterns() {
        return excludePatterns;
    }

    public void setExcludePatterns(List excludePatterns) {
        this.excludePatterns = excludePatterns;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public boolean isAlwaysOk() {
        return alwaysOk;
    }

    public void setAlwaysOk(boolean alwaysOk) {
        this.alwaysOk = alwaysOk;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy