Have u encountered a log file which is , big in size, like server.log of size MBs. and you have to find a exception from that file.? how would u do.

If you are working on linux, it's easy. You can do grep in your log file. I encountered problem in using grep that, it only shows single line. like

1. grep "Exception" myLog.log

now, i wanted whole stack trace.. i tried various tricks.. but finally, i got

 grep "Exception\|at " myLog.log and it gave me what  i wanted.

 



Your Option (Login or Post by anonymous)