Skip to content

Commit

Permalink
Add org.hibernate.orm.jdbc.bind to sql logging group
Browse files Browse the repository at this point in the history
It's reasonable to treat prepared statement parameters as part of sql.

See spring-projects#36640 (comment)
  • Loading branch information
quaff committed May 31, 2024
1 parent fa131fa commit 894450b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Spring Boot includes the following pre-defined logging groups that can be used o
| `org.springframework.core.codec`, `org.springframework.http`, `org.springframework.web`, `org.springframework.boot.actuate.endpoint.web`, `org.springframework.boot.web.servlet.ServletContextInitializerBeans`

| sql
| `org.springframework.jdbc.core`, `org.hibernate.SQL`, `org.jooq.tools.LoggerListener`
| `org.springframework.jdbc.core`, `org.hibernate.SQL`, `org.hibernate.orm.jdbc.bind`, `org.jooq.tools.LoggerListener`
|===


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public class LoggingApplicationListener implements GenericApplicationListener {
loggers.add("web", "org.springframework.boot.web.servlet.ServletContextInitializerBeans");
loggers.add("sql", "org.springframework.jdbc.core");
loggers.add("sql", "org.hibernate.SQL");
loggers.add("sql", "org.hibernate.orm.jdbc.bind");
loggers.add("sql", "org.jooq.tools.LoggerListener");
DEFAULT_GROUP_LOGGERS = Collections.unmodifiableMap(loggers);
}
Expand Down

0 comments on commit 894450b

Please sign in to comment.