Log4j
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
- Migrate JCL to Log4j 2.x API
- Migrate JUL to Log4j 2.x API
- Migrate Log4j 1.x to Log4j 2.x
- Migrate SLF4J to Log4j 2.x API
- Parameterize Log4j 2.x logging statements
Recipes
- Convert Log4j
Logger.setLevel
to Log4j2Configurator.setLevel
- Log exceptions as parameters rather than as string concatenations
- Prepend a random name to each Log4J statement
- Rewrites JUL's Logger#entering method to Log4j API
- Rewrites JUL's Logger#exiting method to Log4j API
- Upgrade Log4j 2.x dependency version