I don’t know of a nice way at the moment, but I could see someone write a pretty simple library for a start. In one of my canisters I just made a ring buffer and whenever I want to log something I write it there, and then I can query for the last n log statements