0

I do not have a clue but what would be the best way to make a filter on a server.log file so it pulls any lines starting with severe into a separate notepad document to debug easier.

If it helps its a console log for a java based game and I am just experimenting.

Qunite
  • 3
  • 1

1 Answers1

0

In your code, where you are printing out the logs, simply substring/contains the exception to check if it is 'severe', if so append that to a file from there. No need to go to your console and filter to the file manually.

if(<yourException.toString()>.contains("severe")){
    <code to append exception to file>
}

How to append to a file

Community
  • 1
  • 1
TejjD
  • 2,571
  • 1
  • 17
  • 37