Skip to content

Commit c9e9f6b

Browse files
php-coderbodom91
authored andcommitted
Configure MySQL connector to log messages in slf4j.
See also: http://stackoverflow.com/questions/10903206/enabling-mysql-general-query-log-with-jdbc Related to php-coder#420
1 parent 9bb4d70 commit c9e9f6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/resources/application-prod.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spring.profiles: prod
22

3-
spring.datasource.url: jdbc:mysql://localhost:3306/mystamps
3+
spring.datasource.url: jdbc:mysql://localhost:3306/mystamps?logger=com.mysql.jdbc.log.Slf4JLogger
44
spring.datasource.username: mystamps
55
spring.datasource.password: q1
66
spring.datasource.driver-class-name: com.mysql.jdbc.Driver

src/main/resources/application-travis.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spring.profiles: travis
22

3-
spring.datasource.url: jdbc:mysql://localhost:3306/mystamps
3+
spring.datasource.url: jdbc:mysql://localhost:3306/mystamps?logger=com.mysql.jdbc.log.Slf4JLogger
44
spring.datasource.username: travis
55
spring.datasource.password:
66
spring.datasource.driver-class-name: com.mysql.jdbc.Driver

0 commit comments

Comments
 (0)