client-java icon indicating copy to clipboard operation
client-java copied to clipboard

[close #396] upgrade log4j and slf4j

Open iosmanthus opened this issue 4 years ago • 1 comments

Signed-off-by: iosmanthus [email protected]

What problem does this PR solve?

Issue Number: close #396

Problem Description: this pull request upgrade the log4j and slf4j to avoid some security issues and improve the performance while a higher log level is set. In addition, this pull request eliminates the code of log level detections which is really annoying. For now, this pull request only focuses on the DEBUG log, instead of the higher-level logs.

What is changed and how it works?

Use slf4j 2.0's fluent API to eliminate the log level check and use lambda syntax to enable lazy log string evaluation.

Check List for Tests

This PR has been tested by the at least one of the following methods:

  • Manual test (add detailed scripts or steps below)

iosmanthus avatar Dec 16 '21 08:12 iosmanthus

This PR is stale because it has been open 30 days with no activity. Remove the status/stale label or comment or this PR will be closed in 7 days.

github-actions[bot] avatar Mar 17 '22 00:03 github-actions[bot]