Sends message to ChromeLogger console.

@param mixed  $message message to log
@param string $priority

@return bool    was successful?
490890
public static function chromeLog($message, string $priority = self::DEBUG): bool
    {
        if (self::$showChromeLogger && !self::isProductionMode()) {
            self::sendToLogger(self::getChromeLogger(), $priority, $message);

            return true;
        }

        return false;
    }
926498
public function reply ($message) {
		// Make sure we actually have a text to reply to
		if (!$this->inbound_message) {
			return false;
		}

		return $this->sendText($this->from, $this->to, $message);
	}
128908
public static function Log ($value, $priority = \MvcCore\IDebug::INFO) {
		if (static::$originalDebugClass) {
			$dumpedValue = static::dumpHandler(
				$value, NULL, ['bar' => FALSE, 'backtraceIndex' => 1]
			);
			return static::storeLogRecord($dumpedValue, $priority);
		} else {
			return @call_user_func_array(static::$handlers['log'], func_get_args());
		}
	}
286762
private function log($priority, $msg, $fileHandle = null)
    {
        if ($priority[0] < $this->logLevel && $fileHandle === null) {
            return;
        }

        $logTime = time();

        $this->logQueue[] = new Logger\Message($priority[1], $logTime, $msg);

        /* ensure the output messages line up vertically */
        $prioritystr = '['.$priority[1].']';
        $timestr = '['.date('Y-m-d H:i:s - T', $logTime).']';
        while (strlen($prioritystr) < 7) {
            $prioritystr .= ' ';
        }
        $message = $prioritystr.'  '.$timestr.' '.$msg."\n";
        $message = getmypid().': '.$message;

        if (defined('STDERR')) {
            fputs(STDERR, getmypid().': '.$prioritystr.'  '.$msg."\n");
        } else {
            echo '<!-- LogMessage: '.$message." -->\n";
        }

        if ($this->file != null) {
            if ($fileHandle !== null) {
                fputs($fileHandle, $message);
            } else {
                error_log($message, 3, $this->file);
            }
        } elseif ($fileHandle !== null) {
            fputs($fileHandle, $message);
        }

        if (count($this->logQueue) > $this->max) {
            $this->flush();
        }
    }
382793
protected function _log($message, $priority = 4)
    {
        if (!$this->_options['logging']) {
            return;
        }
        if (!(isset($this->_options['logger']) || $this->_options['logger'] instanceof Zend_Log)) {
            Zend_Cache::throwException('Logging is enabled but logger is not set');
        }
        $logger = $this->_options['logger'];
        $logger->log($message, $priority);
    }
288350
public function sendMessage($message, $tts = false)
    {
        $deferred = new Deferred();

        $this->getPrivateChannel()->then(function ($channel) use ($message, $tts, $deferred) {
            $channel->sendMessage($message, $tts)->then(function ($response) use ($deferred) {
                $message = $this->factory->create(Message::class, $response, true);
                $deferred->resolve($message);
            }, \React\Partial\bind_right($this->reject, $deferred));
        }, \React\Partial\bind_right($this->reject, $deferred));

        return $deferred->promise();
    }
125597
public function sendMessage(Message $message)
    {
        $this->currentId++;
        $messageData = $message->convertToRconData($this->currentId);
        $this->client->write($messageData);

        return $this->getResponseMessage();
    }
138793
protected function log($message, $severity)
	{
		if (!empty($this->log_function))
		{
			if (isset($this->log_function[$severity]))
			{
				return call_user_func_array($this->log_function[$severity], array($message, $severity));
			}
			elseif (isset($this->log_function[self::LOG_LEVEL_ALL]))
			{
				return call_user_func_array($this->log_function[self::LOG_LEVEL_ALL], array($message, $severity));
			}
		}
		// Barracuda specific logging class, to keep internal code working
		elseif (method_exists('Log', 'message'))
		{
			return Log::message($message, $severity);
		}

		return true;
	}
164545
public function notify($message)
    {
        try {
            $command = $this->createCommand($message);
            $this->socket->send($command);

            $result = false;
            $limit = microtime(true) + $this->timeout;

            while (microtime(true) < $limit && false === $result = $this->socket->recv(\ZMQ::MODE_NOBLOCK)) {
                usleep(1000);
            }

            if (false === $result) {
                $this->logger->error(sprintf('Unable to notify the task manager with message "%s" within timeout of %d seconds', $message, $this->timeout));
                throw new RuntimeException('Unable to retrieve information.');
            }

            $data = @json_decode($result, true);
            if (JSON_ERROR_NONE !== json_last_error()) {
                throw new RuntimeException('Invalid task manager response : invalid JSON.');
            }
            if (!isset($data['reply']) || !isset($data['request']) || $command !== $data['request']) {
                throw new RuntimeException('Invalid task manager response : missing fields.');
            }

            return $data['reply'];
        } catch (\ZMQSocketException $e) {
            $this->logger->error(sprintf('Unable to notify the task manager with message "%s" within timeout of %d seconds', $message, $this->timeout), ['exception' => $e]);
            throw new RuntimeException('Unable to retrieve information.', $e->getCode(), $e);
        }
    }
907380
public function push(QueueMessage $message)
    {
        $queue = $message->getQueueName() ?: $this->queue;

        $options = $message->getOptions();

        $options['delay'] = $message->getDelay();

        return $this->client->postMessage($queue, json_encode($message), $options)->id;
    }
615066
protected function SendMessage($message)
    {
        $this->signal_data->message = $message;
        
        $this->Send(
            \Peg\Lib\Signals\Type\Lexers::LEXER_MESSAGE,
            $this->signal_data
        );
    }
1345211
public function log($message, $priority = null)
    {
        // If message contains one of ignored messages, shut down
        foreach (self::$ignoredMessages as $ignoredMessage) {
            if (strpos($message[1], $ignoredMessage) !== false) {
                return true;
            }
        }

        // Log to file
        $response = parent::log($message, $priority);

        if (in_array($priority, self::$priorities)) {
            if ($message instanceof \Exception) {
                \Errbit::instance()->notify($message);
            } else {
                \Errbit::instance()->notify(
                    new \Exception($priority . ' ' . $message)
                );
            }
        }

        return $response;
    }
613568
public function sendMessage($message)
    {
        if ($payload = $this->getJsonPayload($message)) {
            $response = $this->getHttpClient()
                ->post($this->getWebhook(), [
                    'headers' => ['Content-Type' => 'application/json'],
                    'body' => $payload,
                ]);

            return 200 === $response->getStatusCode();
        }

        return false;
    }
1229778
public function push(QueueMessage $message)
    {
        $job = $message->getJob();
        /** @var JobInterface $job */
        $job = unserialize($job);

        $job->execute();

        return 0;
    }
1106996
public function sendMessage($to, $message)
    {
        $url = $this->url.'/v2/room/'.urlencode($to).'/notification';

        return $this->post($url, [
            'headers' => $this->getHeaders(),
            'json' => $message,
        ]);
    }
241603
public function sendMessage($message) {
		$message = preg_replace("/(\n\r|\n)/","\r",$message);
		$query = http_build_query(array(
			'user' => $this->_user_id,
			'pass' => $this->_api_key,
			'msg' => $message
		));
		$url = self::api_url.'?'.$query;

		$curl_handler = curl_init();
		curl_setopt($curl_handler,CURLOPT_URL,$url);
		curl_setopt($curl_handler,CURLOPT_POST,false);
		curl_setopt($curl_handler,CURLOPT_RETURNTRANSFER,true);
		curl_setopt($curl_handler,CURLOPT_HEADER,true);
		curl_setopt($curl_handler,CURLOPT_NOBODY,true);
		curl_setopt($curl_handler,CURLOPT_RETURNTRANSFER,1);
		curl_setopt($curl_handler,CURLOPT_SSL_VERIFYPEER,true);
		curl_setopt($curl_handler,CURLOPT_SSL_VERIFYHOST,2);
		curl_setopt($curl_handler,CURLOPT_CAINFO,__DIR__."/freemobile.crt");
		
		if (curl_exec($curl_handler) === false) {
			throw new Exception('Curl error : '.curl_error($curl_handler));
		}
		
		$status = curl_getinfo($curl_handler,CURLINFO_HTTP_CODE);
		curl_close($curl_handler);

		switch ($status) {
		case 200:
			return true;
			break;

		case 400:
			throw new Exception('Badly formed request');
			return false;
			break;

		case 402:
			throw new OverflowException('Too many messages sent in a short period of time');
			return false;
			break;

		case 403:
			throw new UnexpectedValueException('SMS notification service not activated or wrong credentials');
			return false;
			break;

		case 500:
			throw new RuntimeException('Server error, try later');
			return false;
			break;
			
		default:
			return false;
			break;
		}
	}
612619
protected void log(String message, int priority) {
        if (project != null) {
            project.log(message, priority);
        }
    }