模块 org.redkale

注释类型 LogExcludeLevel


  • @Documented
    @Target(TYPE)
    @Retention(RUNTIME)
    @Repeatable(LogExcludeLevels.class)
    public @interface LogExcludeLevel
    等于level日志级别且包含keys字符串的日志才会被排除
     @LogExcludeLevel(levels = {"FINEST"}, keys = {"SET username ="})
     public class UserRecord {
          public int userid;
          public String username = "";
     }
    
     这样当调用DataSource对UserRecord对象进行操作时,拼接的SQL语句含"SET username ="字样的都会在FINEST日志级别过滤掉
     

    详情见: https://redkale.org

    作者:
    zhangjx