I've created a console view which displays profiling information; each printed line containing detailed metrics. What I'm attempting to do is set the color of each line printed in the console based on the metrics (e.g. set the color of a particular line to green to show performance gain). I started with a MessageConsole, but using setColor on the MessageConsoleStream updates the whole stream, as it should.

At the moment I'm looking at consoleColorProviders extension point, but first want to make sure that this is the right approach or whether there is a better way to achieve what I described above.