How may I get only ERROR related logs from my stack trace?

Thanks for your suggestion, will try to implement the same.