You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep getting an error like this but I have configged my app.js according to the docs on the Adonis 4.1 Site. I have this site deployed on an Ubuntu server and running the server.js with PM2. I would really appreciate it if someone could please help me to resolve this issue.
Full error from PM2 logs :
"message":"RuntimeException: E_MISSING_CONFIG: logger.transport is not defined inside config/app.js file> More details: https://err.sh/adonisjs/errors/E_MISSING_CONFIG1 Function.missingConfig"
This is my app.js logger section :
logger: {
/*
|--------------------------------------------------------------------------
| Transport
|--------------------------------------------------------------------------
|
| Transport to be used for logging messages. You can have multiple
| transports using same driver.
|
| Available drivers are: file and console.
|
*/
transport: 'file',
/*
|--------------------------------------------------------------------------
| Console Transport
|--------------------------------------------------------------------------
|
| Using `console` driver for logging. This driver writes to `stdout`
| and `stderr`
|
*/
console: {
driver: 'console'
},
/*
|--------------------------------------------------------------------------
| 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',
filename: 'adonis.log',
level: 'debug'
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there
I keep getting an error like this but I have configged my app.js according to the docs on the Adonis 4.1 Site. I have this site deployed on an Ubuntu server and running the server.js with PM2. I would really appreciate it if someone could please help me to resolve this issue.
Full error from PM2 logs :
"message":"RuntimeException: E_MISSING_CONFIG: logger.transport is not defined inside config/app.js file> More details: https://err.sh/adonisjs/errors/E_MISSING_CONFIG1 Function.missingConfig"
This is my app.js logger section :
logger: {
/*
|--------------------------------------------------------------------------
| Transport
|--------------------------------------------------------------------------
|
| Transport to be used for logging messages. You can have multiple
| transports using same driver.
|
| Available drivers are:
file
andconsole
.|
*/
transport: 'file',
},
Beta Was this translation helpful? Give feedback.
All reactions