Is there a way to access the Unity console from script?

Is there a way to parse the Unity Console from within the unity instance? Specifically I’m calling BuildPipeline.BuildPlayer which returns any errors but warnings or information messages seem to only go to the console or log file. The log file is useful but it’s a little too verbose to easy parse on a regular basis for a handful of warnings.

What I’d love is to clear the console, call some complicated task, then gather all the information on the console and do something clever with it; say send email or provide a truncated log.