Since I've recently grown enthusiast at the happy combination between YAML's ease of use through suitable packages as a data serialization means and its human readability, I've been considering using it for some logs.
Indeed, since you can have multiple YAML streams in one string/file, as a format it's good for appending. However when it comes to logs, you often want to check them. YAML::Syck, for example, lets you easily store and recover multiple streams. So far, that's fine. But what if one wants to continuously inspect the logs as new "records" are appended?
I am aware of the various strategies for dealing with "tail -f" kinda stuff, and I know how to search for more, but the problem here is that a record itself would comprise multiple lines. I can imagine a few ways to overcome this, but more or less they all amount to do some parsing by hand.
Or else, at least with regular enough data, would it suffice to set $/ to "--- "? (Although even in that case it would be at the beginning of each record rather than at the end - I may still need to massage each record individually before processing it.) I would like to hear some opinion...