Skip to content

Commit

Permalink
Merge pull request #284 from skrenek/master
Browse files Browse the repository at this point in the history
Added ability to log request times to a csv file if a request takes longer than a configurable threshold.
  • Loading branch information
skrenek committed May 8, 2014
2 parents 08ce293 + c446f27 commit 9b0584c
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 91 deletions.
54 changes: 40 additions & 14 deletions lib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,29 @@
"cookieParser": {
"secret": "feather.sid"
},
"timing": {
"enabled": false,
"logging": {
"thresholdMs": 500,
"category": "http.access.timing"
}
},
"session": {
"provider": "memory",
"providerOptions": null,
"key": "feather.sid",
"secret": "feather app key",
"ignorePaths": ["/robots.txt"],
"cookie": {
"path": "/",
"httpOnly": false,
"maxAge": 14400000,
"secure": false
"cookie": {
"path": "/",
"httpOnly": false,
"maxAge": 14400000,
"secure": false
}
},
"bodyParser": {
"ignorePaths": {

},
"multipart": {
"dest": "/tmp",
Expand All @@ -41,15 +48,15 @@
},

"host": "localhost",

"socket.io": {
"enabled": false,
"port": 8081,
"host": "localhost",
"log level": 1,
"log level docs": "0 = error, 1 = warn, 2 = info, 3 = debug"
},

"auth": {
"enabled": false,
"userIdPrefix": "org.couchdb.user:"
Expand All @@ -76,14 +83,14 @@
"redis": {
"servers": {}
},

"data": {
"datalinking": {
"enabled": true
}
},
"domPoolSize": {
"min": 10,
"min": 10,
"max": 20
},
"environments": {
Expand Down Expand Up @@ -112,11 +119,30 @@
"appenders": [
{
"type": "console",
"options": { "layout": "colored" }
"options": {
"layout": "colored",
"excludedCategories": [
"http.access.timing"
]
}
},
{
"type": "file",
"options": {
"layout": "passThrough",
"filename": "logs/request-timing.csv",
"maxFileSize": 10485760,
"numBackups": 100,
"filePollInterval": 60,
"includedCategories": [
"http.access.timing"
]
}
}
],
"categories": {
"http.access.headers": "off"
"http.access.headers": "off",
"http.access.timing": "info"
},
"templates": [
{"id":"separator", "template":"-------------------------------------------------------------------------"}
Expand Down Expand Up @@ -156,7 +182,7 @@
"publishType": "pageContent",
"publisherId": "local"
},
{
{
"name":"feather-client-core.js",
"publishType": "package",
"consolidate": false,
Expand All @@ -176,7 +202,7 @@
"rest": {
"autoGenerateProxy": false
},

"ui": {
"enabled": true,
"provider": "jqueryUI",
Expand Down
Loading

0 comments on commit 9b0584c

Please sign in to comment.