You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm trying to understand - Why I can't receive request from Monolog on my server(everything fine from local machine).
Because of that I want to transform Monolog request into cUrl string and execute it directly from server machine (I think that such request can be blocked on server side by firewall or something like that)
For initialisation I'm using next code
protected function init()
{
parent::init();
$config = Factory::getInstance()->getConfigurationForInstallation('monolog');
$host = $config->getHost();
$port = $config->getPort();
$handler = new SyslogUdpHandler($host, $port);
$formatter = new LogstashFormatter('portal-log');
$handler->setFormatter($formatter);
$this->log = new Logger('portal-logger');
$this->log->pushHandler($handler);
}
and call with $this->log->addRecord(Logger::ERROR, '[PORTAL] ' . $message, []);
How can I catch final result of such request and reproduce it on server?
P.S. I will be grateful for any other recommendation for my situation (server not send but local machine - OK)
The text was updated successfully, but these errors were encountered:
Monolog 2
Hi. I'm trying to understand - Why I can't receive request from Monolog on my server(everything fine from local machine).
Because of that I want to transform Monolog request into cUrl string and execute it directly from server machine (I think that such request can be blocked on server side by firewall or something like that)
For initialisation I'm using next code
and call with
$this->log->addRecord(Logger::ERROR, '[PORTAL] ' . $message, []);
How can I catch final result of such request and reproduce it on server?
P.S. I will be grateful for any other recommendation for my situation (server not send but local machine - OK)
The text was updated successfully, but these errors were encountered: