Fix string format error in DiskFile close

Add a 'get_lines_for_level' method to FakeLogger in order to actually
validate the log line format string is valid for the given args.

Change-Id: Ib2559ddf5c9d89e17c6ac08d26cc46a4193a2df2
Merge "Fix string format error in DiskFile close"