|
|
This feature provides URL-based call statistics that are logged after
|
|
|
some amount of calls. Statistics are logged at INFO level.
|
|
|
|
|
|
|
|
|
### Configuration Options
|
|
|
|
|
|
* __stats.logInterval__ (type: Integer)
|
|
|
|
|
|
Specifies after how many request the statistics will be logged
|
|
|
|
|
|
|
|
|
Set options with the 'DelightConfig' for your embedded server:
|
|
|
|
|
|
DelightConfig cfg = DelightConfigFinder.getDefaultConfigBuilder()
|
|
|
.setOption("stats.logInterval", 500)
|
|
|
.build();
|
|
|
...
|
|
|
|
|
|
Logging output will look like this:
|
|
|
|
|
|
11:17:48.502 [pool-1-thread-83] INFO de.dfki.delight.feature.StatsFeature - 70 requests since startup (uptime 10m23s55ms):
|
|
|
4: http://localhost:8080/example-delight-webapp/delight/myHandler/bounceArray
|
|
|
4: http://localhost:8080/example-delight-webapp/delight/myHandler/hello
|
|
|
4: http://localhost:8080/example-delight-webapp/delight/myHandler/bounceString
|
|
|
4: http://localhost:8080/example-delight-webapp/delight/myHandler/bounceStringList
|
|
|
3: http://localhost:8080/example-delight-webapp/delight/myHandler/bounceChar
|
|
|
2: http://localhost:8080/example-delight-webapp/delight/_api.txt
|
|
|
1: http://localhost:8080/example-delight-webapp/delight/abstract/doSomething
|
|
|
...
|
|
|
|