How Should I clear/remove all the logs in forge App?

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

  1. 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?)
  2. 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.

Wait by the river long enough 30 days and the body of your enemy forge logs float by you.

~ Sun Tzu