Description
I have setup parse server on AWS. I have connected my iOS app to it however I am getting errors returned to the xcode console. This code did not error on parse.com hosted server. In order for me to track down what the error is I need to see the cloud code logs.
I have set up parse dashboard locally and it connects however, there are no logs. Before you close this as a duplicate: I have setup FileAdapterLogger as stated in --> #781
My elastic beanstalk server is healthy and the app calls the CC. If I use "verbose: 1" in my index.js I get a TON of output into the log files in parse dashboard. I need to see just the cloud code logs including errors in the error log.
This is my setup:
var logger = require('parse-server/lib/Adapters/Logger/FileLoggerAdapter').FileLoggerAdapter;
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://xxxxxxxxxxxxxxxxxxxxxxxx',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
masterKey: process.env.MASTER_KEY || 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
serverURL: process.env.SERVER_URL || 'http://xxxxxxxxxxxxxxxxxxxx/parse/',
loggerAdapter: new logger({ logsFolder: './' })
});
Expected Results
I need to have cloud code logs working in locally hosted dashboard.
Actual Outcome
"No logs in the last 30 days"
Environment Setup
- Server
- parse-server version: latest
- Operating System: latest
- Hardware: latest
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): AWS
- Database
- MongoDB version: latest
- Storage engine: latest
- Hardware: latest
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): mLab
I've set this all up this week so every version is the latest