Cleanup messageFormatter example to use logs from build steps instead of directly using build logs

Current example ignores build steps and directly fetches build logs, this change fetches the last completed step first and then goes about extracting build logs from said step. Makes for a better example to follow
Yep, should be step.getName() not step().getName(), my bad