Environment : Dev
(Assume I have all the logs of type INFO).
To see the logs of forge app on console we use command, >forge logs. By using this command it shows entire logs.
I have following questions wrt to forge logs
- Is there any way to restrict the logs to print on console apart from log type (eg date. How I can
see the logs for particular day?)
- How we can clear or remove the logs in forge app (All the previous logs should get removed).
I can’t find a way,. but I did find forge logs -g which at least groups the entries by request
Hi @SuhasPawar
If you want to filter on the logs, create some structured logs on top of what we provide. This will allow you to put these logs into a filtering mechanism for further analysis.
We currently don’t have a way to clear or remove previous logs. Nor do we currently have anything planned in our roadmap.
If you’d like to request this feature feel free to make the request here.