Store log messages in an array of messages.
Initialize @messages at instantiation time.
Test LogAdapter#messages
Merge pull request #3244 from jekyll/store-messages