GitHub
Join us on Slack
Join us on Discord
Ask on Stack Overflow
Search…
⌃K
Links
Introduction to OpenRewrite
Running Recipes
Quickstart: Setting up your project and running recipes
Running Rewrite on a Gradle project without modifying the build
Running Rewrite without build tool plugins
Popular recipe guides
Authoring Recipes
Recipe development environment
Writing a Java refactoring recipe
Recipe testing
Recipe conventions and best practices
Modifying methods with JavaTemplate
Creating multiple visitors in one recipe
Writing recipes over multiple source file types
Changelog
Snapshot (2023-01-30)
Snapshot (2023-01-25)
7.35.0 Release (2023-01-20)
7.34.2 Release (2022-12-16)
7.34.0 Release (2022-12-09)
7.33.0 Release (2022-11-16)
Reference
Latest versions of every OpenRewrite module
Maven plugin configuration
Gradle plugin configuration
Snapshot versions
JsonPath and JsonPathMatcher
Declarative YAML format
Method patterns
Dependency version selectors
Framework provided markers
Recipe catalog
CircleCI
Concourse
Github Actions
Java
Add ASLv2 license header
Add license header
Add or update annotation attribute
Change method access level
Change method name
Change method target to static
Change method target to variable
Change static field access to static method access
Change type
Delete method argument
Demonstrate rendering of Markup markers
Demonstrate rendering of recipe exceptions
Order imports
Randomize tree IDs
Remove annotation
Remove interface implementations
Remove static import
Remove unused imports
Rename package name
Reorder method arguments
Replace constant with literal value
Simplify a call chain
Transform calls to Objects.isNull(..) and Objects.nonNull(..)
Update source positions
Use static import
Uses @RewriteSkip annotation
Cleanup
Controlflow
Format
JHipster
Logging
Parameterize logging statements
Use logger instead of printStackTrace()
Use logger instead of system print statements
Use logger instead of system print statements
Use logger instead of system print statements
Log4j
Logback
SLF4J
Micronaut
Modernize
OpenRewrite best practices
Search
Security
Spring
Testing
Kubernetes
Quarkus
Maven
Terraform
Cloud suitability analyzer
Core
Config
Gradle
Groovy
Hcl
JSON
Properties
XML
YAML
Concepts & Explanations
Lossless Semantic Trees (LST)
Java LST examples
YAML LST examples
TreeVisitingPrinter
Recipes
Visitors
Styles
Environment
Markers
JavaTemplate
Pointcut expressions
Powered By
GitBook
Logging
Enforce logging best practices and migrate between logging frameworks.
Recipes
Parameterize logging statements
Use logger instead of
printStackTrace()
Use logger instead of system print statements
Use logger instead of system print statements
Use logger instead of system print statements
Subcategories
Log4j
Logback
SLF4J
Previous
Fix CWE-338 with SecureRandom
Next
Parameterize logging statements
Last modified
13d ago