Is there any way to see the strapi server logs from a strapi webapp?
Many thanks!
Is there any way to see the strapi server logs from a strapi webapp?
Many thanks!
Hello @Tobi,
Did you try looking at Webapp < Logs Report?
Do let us know if you were getting any issues with it.
yes, always:
Click on the fetch logs button to view logs related to xxx.xxx.xx on server strapi-n16-1
After pressing the Fetch logs button nothing happens
Thank you for letting us know about it.
That’s the place to view webapp logs but we’ll have a look at it and get back to you.
Hello @Tobi,
We just found out that there is an issue with the Strapi web app logs. We’ll be making a quick fix and releasing it out shortly.
Hello @Tobi,
We’ve released a fix which we expect will resolve the issue.
Please give it a try and let us know whether it works for you or not.
Thx for the fast reply, now I can see logs, but only “INFO” logs and not the stuff i’m interested in
Hello @Tobi,
The logs you see in Logs Report
for NodeJS based applications are from PM2 logs. We can find them in this location /opt/pm2/logs
.
I think It can be the case that there are no error logs for your strapi
webapp created by PM2. If that’s not the case do let us know.
You may already be doing this but from the Logs Report
page you can click on Load PM2 Logs
for more logs.
Further, you can also load logs from Server < Logs. Here select PM2
as Log Type
.
yeah there are no related logs, is there any way to get the direct strapi logs?
Hello @Tobi,
I’m not quite sure about that. May be it’ll be a better idea to look after Strapi documentation about it.