Log connection URL for embedded databases
Prior to this commit, EmbeddedDatabaseFactory logged the name of an embedded database just before it was created; however, the name alone is not sufficient for connecting to the database via external tools such as the H2 Web Console. This commit updates EmbeddedDatabaseFactory to make it easier to connect to embedded databases via external tools by logging the complete connection URL for an embedded database as it's being created. In addition, EmbeddedDatabaseFactory now logs when an embedded database is being shut down. Issue: SPR-13370
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n
|
||||
log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%-5p] [%c] - %m%n
|
||||
|
||||
log4j.appender.file=org.apache.log4j.FileAppender
|
||||
log4j.appender.file.file=bin/spring-jdbc.log
|
||||
log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.file.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n
|
||||
|
||||
log4j.rootCategory=ERROR, console, file
|
||||
|
||||
log4j.rootCategory=WARN, console
|
||||
log4j.logger.org.springframework.beans=WARN
|
||||
log4j.logger.org.springframework.binding=DEBUG
|
||||
|
||||
#log4j.logger.org.springframework.jdbc=TRACE
|
||||
|
||||
#log4j.logger.org.springframework.jdbc.datasource.embedded=INFO
|
||||
|
||||
Reference in New Issue
Block a user