Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.0.2, 4.0.3
-
None
-
None
-
Patch
Description
I defined a groovy class with @Slf4j annotation with custom logging strategy,
like this:
@Slf4j(loggingStrategy=MyStrategy) class Foo { public String getFoo() { log.error("Hi") } }
But it remains use the original strategy.
The problem is in the LogASTTransformation#createLoggingStrategy method where loggingStrategy is always obtained from the default value.
Attachment contains source of fixed method.
Please include the fix into the nearest release.