Integrating monolog with WordPress

I've been using Simple History for ages, and all in all it's a really good solution for logging interesting admin activities or even for technical debug information... but also I needed something more abstract and standard for handling more serious events and keeping a better overview of our projects and their integrations.

https://felipe.lavin.blog/2023/04/19/integrating-monolog-with-wordpress/

#Articles #WebDevelopment #Articles #php #WordPress

Integrating monolog with WordPress

I’ve been using Simple History for ages, and all in all it’s a really good solution for logging interesting admin activities or even for technical debug information… but also I ne…

felipe.lavin.blog
@felipelavinz were you are aware that Wonolog exists to add support of Monolog for #WordPress ?
https://github.com/inpsyde/Wonolog
GitHub - inpsyde/Wonolog: Monolog-based logging package for WordPress.

Monolog-based logging package for WordPress. Contribute to inpsyde/Wonolog development by creating an account on GitHub.

GitHub
@tim Hi, sorry for the delay! Yes I checked Wonolog, but I didn't like that it logs to files and the way it integrates with WordPress -- it's great if you want something more automatic, but that's not quite my use case; that's why I want to go more for the "library" path
@tim There's also https://github.com/bradmkjr/monolog-wordpress which is very simple, but I don't like the way it manages additional columns... I guess it's because I just want to experiment with JSON columns 😜
GitHub - bradmkjr/monolog-wordpress: WordPress Handler for Monolog, which allows to store log messages to a MySQL Table

WordPress Handler for Monolog, which allows to store log messages to a MySQL Table - GitHub - bradmkjr/monolog-wordpress: WordPress Handler for Monolog, which allows to store log messages to a MyS...

GitHub