GitHub
Join us on Slack
Join us on Discord
Ask on Stack Overflow
Search
⌃
K
Links
Introduction to OpenRewrite
Running Recipes
Authoring Recipes
Recipe catalog
Kotlin
Python
Analysis
CircleCI
Cloud suitability analyzer
Concourse
Cucumber
GitHub Actions
Hibernate
Java
Add ASLv2 license header
Add imports for fully qualified references to types
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
Migrate from WebSphere traditional to Liberty
Order imports
Randomize tree IDs
Remove annotation
Remove interface implementations
Remove static import
Remove unused imports
Rename package name
Reorder method arguments
Replace String literal with constant
Replace constant with another constant
Replace constant with literal value
Simplify a call chain
Transform calls to Objects.isNull(..) and Objects.nonNull(..)
Update source positions
Use static import
Apache
Dependencies
Format
JHipster
Liberty
Logging
Parameterize logging statements
Use logger instead of System.err print statements
Use logger instead of System.out print statements
Use logger instead of printStackTrace()
Use logger instead of system print statements
Log4j
Logback
SLF4J
Change slf4j log level
Enhances logging of exceptions by including the full stack trace in addition to the exception message
Loggers should be named for their enclosing classes
Migrate Log4j 1.x to SLF4J 1.x
Migrate Log4j 2.x to SLF4J 1.x
Migrate Log4j to SLF4J
SLF4J best practices
SLF4J logging statements should begin with constants
org.openrewrite.java.logging.slf4j.ParameterizedLogging
Micronaut
Modernize
OpenRewrite best practices
Search
Security
Spring
Testing
Upgrade
Jenkins
Kubernetes
XML
LaunchDarkly
Micrometer
Okio
OkHttp
Quarkus
Recommendations
Gradle
Maven
SQL
Static analysis and remediation
Terraform
Core
Config
Search
Text
Groovy
Hcl
JSON
Properties
YAML
Changelog
Reference
Concepts & explanations
Powered By
GitBook
Comment on page
SLF4J
Recipes related to
Simple Logging Facade for Java (
SLF4J
)
.
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
Migrate Log4j 1.x to SLF4J 1.x
Migrate Log4j 2.x to SLF4J 1.x
Migrate Log4j to SLF4J
SLF4J best practices
org.openrewrite.java.logging.slf4j.ParameterizedLogging
Recipes
Change slf4j log level
Enhances logging of exceptions by including the full stack trace in addition to the exception message
Loggers should be named for their enclosing classes
SLF4J logging statements should begin with constants
Previous
Migrate Log4j 2.x to Logback
Next
Change slf4j log level
Last modified
20d ago