SERVER-14825 Add utility methods to C++ unit tests for capturing and examining log messages.