pfefferle / wordpress-webmention

A Webmention plugin for WordPress
https://wordpress.org/plugins/webmention/
MIT License
116 stars 31 forks source link

Revisit logging #147

Open dshanske opened 7 years ago

dshanske commented 7 years ago

In #89 we addressed by adding a hook to allow logging. But no one has actually built any logging into the plugin. Want to explore if we can use the hook now to go farther and how we would log outgoing webmentions.

jackysee commented 6 years ago

Need a way to know if webmention has been sent or not. I would vote for post meta.

pfefferle commented 6 years ago

There is a list of pinged URLs in the "send Trackbacks" area. It shows pingbacks, trackbacks and webmentions

tw2113 commented 5 years ago

Where would collective "we" consider viable storage options for logs? Custom db table? Saved option that can be routinely cleared out? File dropped into a writable wp-content folder?

dshanske commented 5 years ago

We tend to avoid custom DB tables if we can. File is probably the best, or in post meta for the post related to the mentions.

tw2113 commented 5 years ago

Thoughts on using a hidden post type for logs? I know my employer has https://github.com/WebDevStudios/WDS-Log-Post as an example of what could be done.

It could be forked/reviewed/updated for current-ness, but it's an option that could be implemented.

It could also be something that is registered or have the post type UI shown if a logging setting is enabled. That also brings up another good point regarding this enhancement overall, we potentially wouldn't want to be logging constantly, though it wouldn't execute on every single page request either.

dshanske commented 5 years ago

Not against it. I think Woocommerce uses the comment table. We just need a cleanup function.

pfefferle commented 5 years ago

My 5 cent: I would prefer the build in file-logging. A dB log makes only sense if you really need detailed informations about transactions. In our case it is only, as far as I understand, a way to debug errors.