Fix logging of failures

This commit adds the missing i18n messages for the action, and simplifies
the function to log with.

A LogFormatter was added so we can use <code></code> tags within the message.

Change-Id: I82bda87407307f1309bccacbbba48ed5ff2e3c60
Merge "Fix logging of failures"