Checks that the expected lines were recorded as events at level Lvl.
Writes the given lines to the Writer.
Writes the given lines to the Writer. lines is taken to be a list of lines, which are
represented as separately written segments (ToLog instances). ToLog.byCharacter
indicates whether to write the segment by character (true) or all at once (false)
Displays a LogEvent in a useful format for debugging.
Displays a LogEvent in a useful format for debugging. In particular, we are only interested in Log types
and non-printable characters should be escaped
Converts the given lines in segments to lines as Strings for checking the results of the test.