diff --git a/src/LdapServiceProvider.php b/src/LdapServiceProvider.php index 4f9169d..26cf251 100644 --- a/src/LdapServiceProvider.php +++ b/src/LdapServiceProvider.php @@ -79,9 +79,11 @@ protected function registerLogging(): void return; } - $channelName = Config::get('ldap.logging.channel'); - $channel = $logger->channel($channelName); - Container::getInstance()->setLogger($channel); + Container::getInstance()->setLogger( + $logger->channel( + Config::get('ldap.logging.channel') + ) + ); } /**