refactor(config): update config/app.js file
This commit is contained in:
parent
9e2322d0aa
commit
ee16630583
|
@ -65,7 +65,21 @@ module.exports = {
|
||||||
| in request url.
|
| in request url.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
jsonpCallback: 'callback'
|
jsonpCallback: 'callback',
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Etag
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Set etag on all HTTP response. In order to disable for selected routes,
|
||||||
|
| you can call the `response.send` with an options object as follows.
|
||||||
|
|
|
||||||
|
| response.send('Hello', { ignoreEtag: true })
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
etag: true
|
||||||
},
|
},
|
||||||
|
|
||||||
views: {
|
views: {
|
||||||
|
@ -144,16 +158,54 @@ module.exports = {
|
||||||
| based on HTTP headers/query string.
|
| based on HTTP headers/query string.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
locale: 'en',
|
locale: 'en'
|
||||||
|
},
|
||||||
|
|
||||||
|
logger: {
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Transport
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Transport to be used for logging messages. You can have multiple
|
||||||
|
| transports using same driver.
|
||||||
|
|
|
||||||
|
| Available drivers are: `file` and `console`.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
transport: 'console',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Fallback Locale
|
| Console Transport
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Fallback locale to be used when actual locale is not supported.
|
| Using `console` driver for logging. This driver writes to `stdout`
|
||||||
|
| and `stderr`
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
fallbackLocale: 'en'
|
console: {
|
||||||
|
driver: 'console',
|
||||||
|
name: 'adonis-app',
|
||||||
|
level: 'info'
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| File Transport
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| File transport uses file driver and writes log messages for a given
|
||||||
|
| file inside `tmp` directory for your app.
|
||||||
|
|
|
||||||
|
| For a different directory, set an absolute path for the filename.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
file: {
|
||||||
|
driver: 'file',
|
||||||
|
name: 'adonis-app',
|
||||||
|
filename: 'adonis.log',
|
||||||
|
level: 'info'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user