This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please test this and let me know what you think Tony.
In essence what I have done is add more verbose logging and use a production grade logger called winston which allows more flexible logging than the default console logger.
You can add LOGBASEPATH=
to the .env file if you wish to put the logs somewhere else, in my case i've put LOGBASEPATH=/var/log/trades/ in and I have configured a datadog agent to listen to this directory and push it to datadog so I can track my trades without connecting to the server.
Note the path must have a tailing slash.
I just noticed the "reconnect:true" flag made it into this commit - feel free to dump it if you want I am using it without any troubles.
Feel free to change the logging wording if you'd like, I spent a bit of time getting them to look nice but I understand if you and Shannon have other preferences.
I'm happy to share the setup for datadog if you'd like but it sounds like you guys have a pretty decent setup already, I cant really log into servers at work as everything locked down but I can access websites over port 80 so datadog works for me (PS I don't work for these guys lol).