Consider adding is*Enabled() methods to LogAccessor #22862
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Affects: 5.2.x
Please consider adding
is*Enabled()
methods toLogAccessor
.I can see 2 use cases...
LogAccessor
with many subclasses - it would make the transition easier because we wouldn't have to transition every subclass at the same time.Supplier
lambda - right now, we have to create a dummy final variable before logging; with these methods, we could continue to use the existing "if enabled" style for these cases.The text was updated successfully, but these errors were encountered: