Is there anyway to embed log info into response?

hello everyone, I am looking for a way to embed log info into
response, so that it can be displayed directly in View for debugging.
any solution?

Off the top of my head: using flash[:warning]?

You could probably write something simple based on file-tail

or elif:

There are also some plugins:

Have used none of those.