Automattic / Cron-Control

A fresh take on running WordPress's cron system, allowing parallel processing

Home Page:https://wordpress.org/plugins/wp-cron-control/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have the Cron Control Runner log in JSON

simonwheatley opened this issue · comments

The Cron Control runner should jog in JSON to make it easier to parse the logs into Logstash for searchability.

@simonwheatley Is there a standard format for JSON log entries?

@hanifn I suggest opening a Systems Request, and I’m happy to help formulate that just ping me on Slack

@simonwheatley it appears there is a standard list of error log fields for logstash. Found this

For backcompat, the output format should be controlled via a flag. It might make sense to update the defaults to set that flag for new installs, but we shouldn't change the format without giving users a way back to the original output.

@ethitter Agreed. A flag would be very useful to existing users.

@joshbetz Chatting with @dchymko about monitoring WP-CLI, knowing when commands are cancelled, etc, and the related PR to this issue has been brought up as The Way To Do That. We wondered whether you would be able to take a look at shaping up the PR as part of this relay?

This issue needs an estimate 😃

Yep, grabbing this from Hanif.