Skip to content

Help improve the logger performance #4

@ralphjiang

Description

@ralphjiang

Could you add log level check first to improve performance?

String msg = r.getRule().getFullyQualifiedName() + "-{" + r.getRule().getExpression() + "}"; if(String.valueOf(o).equals("true")){ matchingRules.add(r.getRule()); log.info("matched: " + msg); }else{ log.info("unmatched: " + msg); }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions