Adding a lazy eval method for debug output

This is mainly useful for debugging logs which might some time to
evaluate and shouldn't interfere with normal operation speed.