We are enhancing our logging of build errors. When a build error happens, we want to log the error details, action description, etc. into our perforce system.
I see that in FB server, in the little tray app, when a build fails I can instantly see the 'last error'
Does the FB script itself have easy access to that info?
You can export the log to XM or Text, and specify on the ExportLog Action to export Error Actions only. If you choose XML then you will need to crearte a stylesheet to convert it into the format you want.
Sounds good… Ideally I would want to export error action directly to a var (can the export output be piped?), but this is a step in the right direction.