rendertron icon indicating copy to clipboard operation
rendertron copied to clipboard

is there any way to add additional logging or a custom callback/closure?

Open vesper8 opened this issue 3 years ago • 1 comments

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!

vesper8 avatar May 04 '21 23:05 vesper8

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.

rudolfbyker avatar May 12 '21 12:05 rudolfbyker

In general, as we're deprecating the project, you should look into alternative approaches to rendering on the web.

AVGP avatar Oct 06 '22 07:10 AVGP