Telegraf: is it possible to log input and output data?

I am investigating some issues that I might be bugs, or could be my lack of understanding telegraf. I did look through the documentation that I could find, which did not answer my question.

So: is it possible to log input data as telegraf sees it (input plugin data logging), and the data as telegraf sends it (output plugin data logging)?

Of course this logging is for short troubleshooting exercises, it doesn’t make sense to keep it on, but it would be invaluable to understand the data processing by telegraf.

(the background is that I am trying to understand if multiple statsd statistics received by telegraf for the same event are summarised)

We don’t have a method to log statsd metrics as they are received, but you can output after it has been aggregated using either the printer processor or the file output.