```php title="PHP" mime_type); error_log("Content length: " . strlen($result->content)); error_log("Metadata: " . json_encode($result->metadata)); } public function processingStage(): string { return "Early"; } public function shouldProcess(object $result, object $config): bool { // Only log non-empty results return !empty($result->content); } public function estimatedDurationMs(object $result): int { // Logging takes minimal time return 1; } public function priority(): int { return 10; } } // Register the logging post-processor $processor = new LoggingPostProcessor(); Kreuzberg::registerPostProcessor($processor); error_log("Logging post-processor registered"); ```