public static function getLogger(IClient $agi)
    {
        if (self::$instance === false) {
            $ret = new AsteriskLoggerImpl($agi);
            self::$instance = $ret;
        } else {
            $ret = self::$instance;
        }
        return $ret;
    }