Project

General

Profile

Actions

Bug #16649

closed

Prevent logger string interpolation when logger is not configured in the used level

Added by Nicolas CHARLES almost 5 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
N/A
Category:
Performance and scalability
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

We are sometime doing complex evaluations in logger.trace (or even debug), that can eat up some ressources (big string, sorting collection, etc)
We could simply avoid evaluating these by if (logger.isDebugEnabled) on the previous line

Actions

Also available in: Atom PDF