LdapTools\Log\EchoLdapLogger::end PHP Method

end() public method

public end ( LogOperation $log )
$log LogOperation
    public function end(LogOperation $log)
    {
        $duration = $log->getStopTime() - $log->getStartTime();
        if (!is_null($log->getError())) {
            echo "\tError: " . $log->getError() . PHP_EOL;
        }
        echo "(" . $log->getDomain() . ") -- End Operation Type: " . $log->getOperation()->getName() . " -- ({$duration} seconds)" . PHP_EOL;
    }
EchoLdapLogger