I have a react and node application hosted on aws ec2. I have cloudwatch running as well and it gets all the logs from the node app. I'm trying to also get the logs from the react application to show in cloudwatch.
Upon researching, I discovered 2 posibilities.
- Create a route in the node app that will spit out a log whatever it receives in its body
- Use the aws cloudwatch library.
I believe the 2nd option is the better more aws way to go about it. I'm just having trouble implementing it... I looked all over the internet but can't find any tutorials or clear documentation and don't know where to start.