Skip to content

Commit

Permalink
Try to initiate Logging with configured loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vítězslav Dvořák committed Dec 30, 2023
1 parent 302227d commit b81f4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ease/Logger/Regent.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct($logger = null)
{
if (empty($logger)) {
$loggers = empty(\Ease\Shared::cfg('EASE_LOGGER')) ? ['syslog'] :
explode('|', \Ease\Shared::cfg('EASE_LOGGER'));
explode('|', \Ease\Shared::cfg('EASE_LOGGER'));
} else {
$loggers = is_array($logger) ? $logger : [$logger];
}
Expand Down Expand Up @@ -156,7 +156,7 @@ public function addStatusObject(Message $message)
public static function singleton($logger = null)
{
if (!isset(self::$instance)) {
self::$instance = new self($logger);
self::$instance = new self(empty($logger) ? \Ease\Shared::cfg('EASE_LOGGER') : $logger);
}
return self::$instance;
}
Expand Down

0 comments on commit b81f4f8

Please sign in to comment.