Treat logs as a data structure, providing you with the ability to collect given segments, find particular messages, or make assertions for correctness.