info('Hello world task executed'); $task->debug('Debug message from hello_world task'); $name = $params['name'] ?? 'World'; return [ 'message' => "Hello, {$name}!", 'timestamp' => date('Y-m-d H:i:s'), ]; } /** * Test task with logging * * @param Task_Instance $task Task instance for logging * @param array $params Task parameters * @return array Result data */ #[Task_Attribute('Test task that demonstrates logging functionality')] public static function test_logging(Task_Instance $task, array $params = []): array { $task->info('Starting logging test'); $task->debug('This is a debug message'); $task->info('Processing step 1'); $task->info('Processing step 2'); $task->info('Logging test complete'); return [ 'success' => true, 'log_count' => 5, ]; } }