mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 05:36:45 +02:00
Fix class import and indenting
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Monolog\Handler;
|
namespace Monolog\Handler;
|
||||||
|
|
||||||
use Monolog\DateTimeImmutable;
|
use DateTimeInterface;
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
use Monolog\Handler\SyslogUdp\UdpSocket;
|
use Monolog\Handler\SyslogUdp\UdpSocket;
|
||||||
|
|
||||||
@@ -95,11 +95,11 @@ class SyslogUdpHandler extends AbstractSyslogHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->rfc === self::RFC3164) {
|
if ($this->rfc === self::RFC3164) {
|
||||||
$datetime->setTimezone(new \DateTimeZone('UTC'));
|
$datetime->setTimezone(new \DateTimeZone('UTC'));
|
||||||
}
|
}
|
||||||
$date = $datetime->format($this->dateFormats[$this->rfc]);
|
$date = $datetime->format($this->dateFormats[$this->rfc]);
|
||||||
|
|
||||||
if ($this->rfc === self::RFC3164) {
|
if ($this->rfc === self::RFC3164) {
|
||||||
return "<$priority>" .
|
return "<$priority>" .
|
||||||
$date . " " .
|
$date . " " .
|
||||||
$hostname . " " .
|
$hostname . " " .
|
||||||
|
Reference in New Issue
Block a user