rendertron
rendertron copied to clipboard
is there any way to add additional logging or a custom callback/closure?
Previously I was calling an API endpoint on every pageview which would provide the user-agent to my backend and allow me to have a precise view over which pages have been crawled by search engine bots and at what time specifically
Now that the search engines are being served a pre-rendered version through Rendertron, this API call is no longer occurring and I have lost access to this precious data.
If it was possible to log this information to a log file (user agent and url) then I could parse that whenever I needed it. This would be very useful to me. If I could somehow add a callback or closure to Rendertron's process so that it could append/create a log file with this basic information then I would appreciate knowing what's the best way to add this functionality
Many thanks!
Similarly, it would be very useful to also be able to have a callback that runs when something goes wrong. One might want to log to e.g. sentry.io or some custom log.
In general, as we're deprecating the project, you should look into alternative approaches to rendering on the web.