Add a 'log' function to the request for plugins