Skip to content

Commit

Permalink
update sample configs for logging options
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlambie committed Jan 2, 2016
1 parent 8815434 commit 692050d
Show file tree
Hide file tree
Showing 5 changed files with 296 additions and 292 deletions.
146 changes: 73 additions & 73 deletions config/config.development.json.sample
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
{
"app": {
"name": "Repo Default"
},
"server": {
"app": {
"name": "Repo Default"
},
"server": {
"host": "127.0.0.1",
"port": 3000
},
"database": {
"hosts": [
{
"host": "127.0.0.1",
"port": 3000
},
"database": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": "",
"database": "serama",
"ssl": false,
"replicaSet": false,
"enableCollectionDatabases": false,
"secondary": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27018
}
],
"username": "",
"password": "",
"replicaSet": false,
"ssl": false
},
"testdb": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": ""
"port": 27017
}
],
"username": "",
"password": "",
"database": "api",
"ssl": false,
"replicaSet": false,
"enableCollectionDatabases": false,
"secondary": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27018
}
],
"username": "",
"password": "",
"replicaSet": false,
"ssl": false
},
"auth": {
"tokenUrl": "/token",
"tokenTtl": 1800,
"clientCollection": "clientStore",
"tokenCollection": "tokenStore",
"database": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": "",
"database": "serama"
"testdb": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
},
"caching": {
"enabled": true,
"ttl": 300,
"directory": "./cache/api/",
"extension": "json"
},
"logging": {
"enabled": true,
"level": "DEBUG",
"path": "./log",
"filename": "dadi-api",
"dateFormat": "",
"extension": "log",
"messageFormat": "<%= label %> - <%= date %> - <%= message %>"
},
"feedback": false,
"env": "development"
],
"username": "",
"password": ""
}
},
"auth": {
"tokenUrl": "/token",
"tokenTtl": 1800,
"clientCollection": "clientStore",
"tokenCollection": "tokenStore",
"database": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": "",
"database": "api"
}
},
"caching": {
"enabled": true,
"ttl": 300,
"directory": "./cache/api/",
"extension": "json"
},
"paths": {
"collections": "workspace/collections",
"endpoints": "workspace/endpoints"
},
"logging": {
"enabled": true,
"path": "./log",
"filename": "dadi-api",
"extension": "log"
},
"feedback": false
}
143 changes: 72 additions & 71 deletions config/config.production.json.sample
Original file line number Diff line number Diff line change
@@ -1,78 +1,79 @@
{
"app": {
"name": "Repo Default"
},
"server": {
"app": {
"name": "Repo Default"
},
"server": {
"host": "127.0.0.1",
"port": 3000
},
"database": {
"hosts": [
{
"host": "127.0.0.1",
"port": 3000
"port": 27017
}
],
"username": "",
"password": "",
"database": "api",
"ssl": false,
"replicaSet": false,
"enableCollectionDatabases": false,
"secondary": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27018
}
],
"username": "",
"password": "",
"replicaSet": false,
"ssl": false
},
"testdb": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": ""
}
},
"auth": {
"tokenUrl": "/token",
"tokenTtl": 1800,
"database": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": "",
"database": "serama",
"ssl": false,
"replicaSet": false,
"enableCollectionDatabases": false,
"secondary": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27018
}
],
"username": "",
"password": "",
"replicaSet": false,
"ssl": false
},
"testdb": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": ""
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": "",
"database": "api"
},
"logging": {
"enabled": true,
"level": "DEBUG",
"path": "./log",
"filename": "dadi-api",
"dateFormat": "",
"extension": "log",
"messageFormat": "<%= label %> - <%= date %> - <%= message %>"
},
"auth": {
"tokenUrl": "/token",
"tokenTtl": 1800,
"database": {
"hosts": [
{
"host": "127.0.0.1",
"port": 27017
}
],
"username": "",
"password": "",
"database": "serama"
},
"clientCollection": "clientStore",
"tokenCollection": "tokenStore"
},
"caching": {
"enabled": true,
"ttl": 300,
"directory": "./cache/api/",
"extension": "json"
},
"feedback": false
"clientCollection": "clientStore",
"tokenCollection": "tokenStore"
},
"caching": {
"enabled": true,
"ttl": 300,
"directory": "./cache/api/",
"extension": "json"
},
"paths": {
"collections": "workspace/collections",
"endpoints": "workspace/endpoints"
},
"logging": {
"enabled": true,
"path": "./log",
"filename": "dadi-api",
"extension": "log"
},
"feedback": false
}
Loading

0 comments on commit 692050d

Please sign in to comment.