Change all the $pdo->cli to $pdo->log.