Is there a way to do this? Yes. Many ways.
The real question is: Why do you want to do this? then "How" to do it becomes the next question.
Do you want to do this because you're coding something custom? OR do you just need the end result (which is to see the log details / filter them) ?
If the second one, there are many existing programs and suites which already have this functionality to them, simply install one of them.
answered 08 Mar '11, 17:27
You could use the back tick notation
// parse and format here echo $contents;
answered 06 Mar '11, 19:36