-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Logging for cron events #19
Comments
Edit: This was pulled out. Needs adding back into the develop branch. |
|
@johnbillion These are listed as built into the 2.0.0-beta, but that got scrubbed to 1.8.0 which has been out for some time. I do not see logging in the current versions. Did this get left out and closed on accident? |
@danieliser Good point, this got reverted because it needs more work for it to be mature and stable. I didn't want to release a part-baked feature. I'll reopen this issue with more details. In the meantime you can use the Notably, the UX for selecting which hooks are logged needs more work, and there is no mechanism for limiting the number of events that are logged. You'll need to manually clear the logs periodically otherwise your database can balloon. |
Nice, look forward to seeing it finished. Will say we found 2 plugins that do logging, this one doesn't have a great UI/UX, but seems to function solidly: https://wordpress.org/plugins/cron-logger/ |
Ooh, would love to see this in Crontrol soon. Was using Cron Logger but it's clunky and not great to use. Some long running jobs hold up the Cron for longer, so as long as "active" sessions/logs of the Cron remain visible. In Cron Logger they just drop off the page in the history even though it's still running. |
I would love to see this feature too! |
Me too |
WP Crontrol should log all cron events for debugging purposes and expose the log somewhere.
This can be achieved by iterating distinct cron hooks in the cron array and adding an action which logs the event. Data to log includes:
Whether it was run manually (viaRun Now
) or via the regular schedulingDid the event miss its scheduled time? By how much?Plus:
do_action( 'crontrol_something' )
to log extra data in the event logStretch Goals:
The text was updated successfully, but these errors were encountered: