Closed
Description
What problem are you trying to solve?
Some users are migrating code from java.util.logging
to Log4j API (cf. apache/logging-log4j2#2083), therefore it would be useful to have a recipe to convert JUL to Log4j API.
This issue can be split into two parts:
- the basic methods such as
Logger#fine
andLogger#getLogger
can be rewritten declaratively, - more advanced methods, such as
Logger#log(Level, String, Object[])
that emulates parameterized logging will probably require some logic to be applied. In the cased of "alternative parameterized logging" aMessageFormatMessageFactory
instance is required.
I can provide a short-term PR for the first part, while the second part requires more work (but is also only useful to a handful of users).
Metadata
Metadata
Assignees
Type
Projects
Status
Done