I'm trying to read a log file which is being written to by a simple daemon. I would like to filter my "live" output to certain - multiple - "types".
My types are: DEBUG|INFO|WARN|ERROR|FATAL
This is what I have so far, and it works for one case, but I cannot get it working for multiple cases though.
tail -f log.txt | grep INFO
I've tried a couple of things to try and say I want "WARN
's & ERROR
's", but nothing is really working for me. How would I correct this?