Improve assertions around logging

Adopt the pattern used by runtime for validating loggregator output.

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>