Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-concurrent-action
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘凯
java-concurrent-action
Commits
3b7f8f79
Commit
3b7f8f79
authored
Dec 26, 2018
by
刘凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加caffenie测试
parent
9872c420
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
668 additions
and
1 deletion
+668
-1
build.gradle
build.gradle
+1
-1
DeGradeLog.java
src/test/java/com/example/demo/degradeLog/DeGradeLog.java
+22
-0
DegradeLogger.java
src/test/java/com/example/demo/degradeLog/DegradeLogger.java
+645
-0
No files found.
build.gradle
View file @
3b7f8f79
...
...
@@ -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"
)
}
src/test/java/com/example/demo/degradeLog/DeGradeLog.java
0 → 100644
View file @
3b7f8f79
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"
)));
}
}
src/test/java/com/example/demo/degradeLog/DegradeLogger.java
0 → 100644
View file @
3b7f8f79
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment