refactor(config): update config/app.js file

This commit is contained in:
Harminder Virk 2017-10-03 22:16:20 +05:30
parent 9e2322d0aa
commit ee16630583

View File

@ -65,7 +65,21 @@ module.exports = {
| 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: {
@ -144,16 +158,54 @@ module.exports = {
| 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'
}
}
}