Ring buffer for the logs of pipeline steps

Currently, the log size is limited to 5MiB and is not configurable.
How about storing the log into a ring buffer rather than just appending to the tail of a slice?