Adds log buffering

- Prints the buffered logs when a test fails
- Allows checking the log_string for logged messages

[#81612110]

Signed-off-by: Karl Isenberg <kisenberg@pivotal.io>