I would like to have all php notices yellow, warnings orange and fatal errors red.
I'm thinking of a method that could be implemented in any class and, in case of error, would change outputs color. Maybe wrap around <span style="class:color">$error</span> or similar.
Any ideas/suggestions/pointers how to achieve that?