1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +02:00

Fix class import and indenting

This commit is contained in:
Jordi Boggiano
2019-08-16 09:13:44 +02:00
committed by GitHub
parent 144f2299ed
commit b615b158e4

View File

@@ -11,7 +11,7 @@
namespace Monolog\Handler;
use Monolog\DateTimeImmutable;
use DateTimeInterface;
use Monolog\Logger;
use Monolog\Handler\SyslogUdp\UdpSocket;
@@ -95,11 +95,11 @@ class SyslogUdpHandler extends AbstractSyslogHandler
}
if ($this->rfc === self::RFC3164) {
$datetime->setTimezone(new \DateTimeZone('UTC'));
}
$date = $datetime->format($this->dateFormats[$this->rfc]);
$datetime->setTimezone(new \DateTimeZone('UTC'));
}
$date = $datetime->format($this->dateFormats[$this->rfc]);
if ($this->rfc === self::RFC3164) {
if ($this->rfc === self::RFC3164) {
return "<$priority>" .
$date . " " .
$hostname . " " .