By hmathar1
I want to host my Nextjs app on App Platform .My question is, how can i access logfiles created by Winston in the root directory of my project ? Is there a way to access such path approot/logs/error.log ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
You can view your application logs by following the steps here:
https://docs.digitalocean.com/products/app-platform/how-to/view-logs/
I personally like the doctl command-line tool and I use the command from the documentation to do so:
doctl apps logs <app id> <component name> --deployment <deployment id> --type <type value>
If you decide to store your logs inside the App component, you need to keep in mind that the storage is not persistent, so during your next deployment, the log will be lost.
For more information on persistent storage, I would recommend going through this documentation here:
https://docs.digitalocean.com/products/app-platform/how-to/store-data/
Hope that this helps. Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.