Skip to content

Commit 6738ca8

Browse files
committed
Shorten logs in readme
1 parent 6cd65cc commit 6738ca8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ You can use all decorators at the same time if you need, if so decorating order
7171

7272
After adding p6spy starter you'll start getting all sql queries in the logs:
7373
```text
74-
2017-06-07 21:42:08.120 INFO 5456 --- [ool-1-worker-57] p6spy : #1496860928120 | took 0ms | statement | connection 0|SELECT NOW()
74+
2017-06-07 21:42:08 INFO p6spy: #1496860928120 | took 0ms | statement | connection 0|SELECT NOW()
7575
;
76-
2017-06-07 21:51:07.802 INFO 5456 --- [ool-1-worker-50] p6spy : #1496861467802 | took 0ms | statement | connection 1|SELECT NOW()
76+
2017-06-07 21:51:07 INFO p6spy: #1496861467802 | took 0ms | statement | connection 1|SELECT NOW()
7777
;
78-
2017-06-07 21:51:07.803 INFO 5456 --- [ool-1-worker-43] p6spy : #1496861467803 | took 0ms | statement | connection 2|SELECT NOW()
78+
2017-06-07 21:51:07 INFO p6spy: #1496861467803 | took 0ms | statement | connection 2|SELECT NOW()
7979
;
80-
2017-06-07 21:51:08.806 INFO 5456 --- [ool-1-worker-36] p6spy : #1496861468806 | took 0ms | statement | connection 3|SELECT NOW()
80+
2017-06-07 21:51:08 INFO p6spy: #1496861468806 | took 0ms | statement | connection 3|SELECT NOW()
8181
;
8282
```
8383

@@ -131,12 +131,12 @@ Also you can configure P6Spy manually using one of available configuration metho
131131

132132
After adding datasource-proxy starter you'll start getting all sql queries in the logs with level `DEBUG` and slow sql queries with level `WARN`:
133133
```text
134-
2017-06-07 21:58:06.630 DEBUG 8492 --- [ool-1-worker-57] n.t.d.l.l.SLF4JQueryLoggingListener :
134+
2017-06-07 21:58:06 DEBUG n.t.d.l.l.SLF4JQueryLoggingListener:
135135
Name:, Time:0, Success:True
136136
Type:Statement, Batch:False, QuerySize:1, BatchSize:0
137137
Query:["SELECT NOW()"]
138138
Params:[]
139-
2017-06-07 21:58:06.630 DEBUG 8492 --- [ool-1-worker-43] n.t.d.l.l.SLF4JQueryLoggingListener :
139+
2017-06-07 21:58:06 DEBUG n.t.d.l.l.SLF4JQueryLoggingListener:
140140
Name:, Time:0, Success:True
141141
Type:Statement, Batch:False, QuerySize:1, BatchSize:0
142142
Query:["SELECT NOW()"]
@@ -146,7 +146,7 @@ Name:, Time:0, Success:True
146146
Type:Statement, Batch:False, QuerySize:1, BatchSize:0
147147
Query:["SELECT NOW()"]
148148
Params:[]
149-
2017-06-07 22:10:50.478 WARN 8492 --- [pool-1-thread-1] n.t.d.l.logging.SLF4JSlowQueryListener :
149+
2017-06-07 22:10:50 WARN n.t.d.l.logging.SLF4JSlowQueryListener:
150150
Name:, Time:0, Success:False
151151
Type:Statement, Batch:False, QuerySize:1, BatchSize:0
152152
Query:["SELECT SLEEP(301000)"]
@@ -224,9 +224,9 @@ If the `flexy-pool-spring-boot-starter` is added to the classpath your datasourc
224224
225225
With default setting you will start getting messages about acquiring and leasing connections:
226226
```text
227-
2017-07-13 01:31:02.575 INFO 5432 --- [ool-1-worker-50] c.v.flexypool.FlexyPoolDataSource : Connection leased for 1500 millis, while threshold is set to 1000 in dataSource FlexyPoolDataSource
228-
2017-07-13 01:31:03.143 WARN 5432 --- [ool-1-worker-51] PoolOnTimeoutConnectionAcquisitionStrategy : Connection was acquired in 1502 millis, timeoutMillis is set to 500
229-
2017-07-13 01:31:03.143 INFO 5432 --- [ool-1-worker-51] PoolOnTimeoutConnectionAcquisitionStrategy : Pool size changed from previous value 10 to 11
227+
2017-07-13 01:31:02 INFO c.v.flexypool.FlexyPoolDataSource: Connection leased for 1500 millis, while threshold is set to 1000 in dataSource FlexyPoolDataSource
228+
2017-07-13 01:31:03 WARN PoolOnTimeoutConnectionAcquisitionStrategy: Connection was acquired in 1502 millis, timeoutMillis is set to 500
229+
2017-07-13 01:31:03 INFO PoolOnTimeoutConnectionAcquisitionStrategy: Pool size changed from previous value 10 to 11
230230
```
231231

232232
All beans of type `ConnectionAcquisitionStrategyFactory` are used to provide `ConnectionAcquisitionStrategy` for the pool.

0 commit comments

Comments
 (0)