9

How do you enable logging of sql queries generated by Exposed in Spring Boot?

The following do not work: logging.level.org.jetbrains.exposed.sql: DEBUG logging.level.org.jetbrains.exposed: DEBUG

Machavity
  • 30,841
  • 27
  • 92
  • 100
Josh B
  • 577
  • 5
  • 11

1 Answers1

14

logging.level.Exposed: DEBUG

Put it in application.properties. It will not work without the capital E on Exposed.

Josh B
  • 577
  • 5
  • 11
  • 8
    This answer is the first that shows up when you search for "exposed log sql" So here's the answer if you are using Logback: ``` ` ` – MrPowerGamerBR Oct 21 '19 at 15:37
  • Do you know how to disable debug logs for Ktor? Exposed always shows full SQL query body in logs, i don't need to see it :\ – Den Jun 16 '22 at 15:54