1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 00:26:10 +02:00

Merge branch '1.x'

This commit is contained in:
Jordi Boggiano
2018-06-11 17:35:32 +02:00
4 changed files with 144 additions and 1 deletions

View File

@@ -150,7 +150,7 @@ class Logger implements LoggerInterface
public function __construct(string $name, array $handlers = [], array $processors = [], DateTimeZone $timezone = null)
{
$this->name = $name;
$this->handlers = $handlers;
$this->setHandlers($handlers);
$this->processors = $processors;
$this->timezone = $timezone ?: new DateTimeZone(date_default_timezone_get() ?: 'UTC');
}