Test that logging-event has occured

While testing some library code, is there a handy way to test if a specific logging event (using log) has actually occurred? I'm inclined to write my own helper-implementation of log::Log, yet I wonder if this has come up before and there is a crate for it.