-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a hook to is_success method #56
Comments
That's a neat idea. I can see the value in it. By itself, As is, I think it lacks sufficient context to be particularly helpful. Currently, I imagine you'd need to use something like On the opposite end of the spectrum, Berlin may benefit from its own Berlin could go as far as installing its own database table(s) for storing its own operational logs. Logs could be a separate repository in this organization that is optionally installed and "just works" while also serving as a decent example of how to use it, since it would need its own Table, Row, Query, etc... 🤔 |
Well, the lack of context isn't entirely true. If This request came originally from the realization that I have had several instances where my create table syntax messed up because of a trailing comma, or something, and I always have a fair amount of debugging that happens before I realize that was the cause. This may be a non-issue if we make the create table syntax end up being auto-generated from the schema, but in the meantime the only way I am able to capture this is through That being said, perhaps I'm thinking too small. Maybe the problem in this circumstance has less to-do with needing a louder Side note, I think calling this error logging is a misnomer because we don't always want to log errors. Sometimes we just want to log when something happens. From here on, I'll refer to this as an Underpin's logger utility makes error logging extendable by implementing a swappable There's some documentation on that here: https://github.com/Underpin-WP/logger-loader#writers Underpin also uses these events with a built-in debug tool that turns on when I'm not convinced that Berlin, specifically, should have something like this, however I do think it should be equipped to easily integrate with systems that use BerlinDB and have their own logging utilities. It would be extremely useful to ensure whatever is created for BerlinDB can be compatible with debugging utilities that the rest of the plugin uses, regardless of what that system looks like. |
It would be nice if, after
is_success()
ran, if an action would fire. This would allow plugins to capture database events, and potentially log when something goes wrong. It would also make it possible to take a corrective action, if possible.The text was updated successfully, but these errors were encountered: