| 1 |
<?php |
| 2 |
/** |
| 3 |
* OpenStation — Code Blue module bootstrap. |
| 4 |
* |
| 5 |
* Native window with id `openstation-code-blue` plus a desktop |
| 6 |
* shortcut icon. The window is an error-log reader for site health |
| 7 |
* hunting: it tails the logs a WordPress install (or its host) can |
| 8 |
* produce — the WP debug log, the PHP error log, and any log file a |
| 9 |
* plugin registers via the `openstation_code_blue_log_sources` |
| 10 |
* filter — parses them into structured entries, and renders them as |
| 11 |
* a severity histogram, headline stat tiles, and a grouped issue |
| 12 |
* list with expandable stack traces. |
| 13 |
* |
| 14 |
* All heavy lifting is lazy: the bundle script loads the first time |
| 15 |
* the window opens, and the log files are only read when the REST |
| 16 |
* routes are hit. |
| 17 |
* |
| 18 |
* @package OpenStation |
| 19 |
*/ |
| 20 |
|
| 21 |
defined( 'ABSPATH' ) || exit; |
| 22 |
|
| 23 |
require_once __DIR__ . '/assets.php'; |
| 24 |
require_once __DIR__ . '/log-reader.php'; |
| 25 |
require_once __DIR__ . '/rest.php'; |
| 26 |
require_once __DIR__ . '/window.php'; |
| 27 |
|