Commit 3b7f8f79 authored by 刘凯's avatar 刘凯

添加caffenie测试

parent 9872c420
......@@ -31,6 +31,6 @@ dependencies {
compile("com.google.guava:guava:18.0")
compile 'com.github.ben-manes.caffeine:caffeine:2.6.2'
compile("cn.com.duiba:biz-tool:1.5.1")
}
package com.example.demo.degradeLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.stream.IntStream;
/**
* @author liukai
* @Description: TODO
* @date 2018/12/2011:52 AM
*/
public class DeGradeLog {
private static Logger logger =DegradeLogger.wrap(LoggerFactory.getLogger(DeGradeLog.class),3,6);
public static void main(String[] args) {
IntStream.range(1,50).forEach(a->
logger.info("报错拉 {}",a,new Exception("213213")));
}
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment