Capture [info] [e-mail:example@test.com] events from log to file

Is it possible to watch the log for specific info events that are outgoing e-mails?
I would like to send all [info] [e-mail:example@test] events to a separate file.

watch the log
What 'log' are you talking about? The Node-RED log?

You need to give a more information about your issue.

Ya the Node-RED log.

So you have a flow sending out email…right?
If so why not examine the email before it is sent and if need be, write it to a file and then send it?