mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Rename LoggerFactory into LoggerManager
This commit is contained in:
parent
c339dc1a07
commit
2df76617c1
3 changed files with 66 additions and 63 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Friendica\Core\Logger\Factory;
|
||||
namespace Friendica\Core\Logger;
|
||||
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Core\Logger\Capability\LogChannel;
|
||||
|
@ -18,9 +18,9 @@ use Psr\Log\LogLevel;
|
|||
use Psr\Log\NullLogger;
|
||||
|
||||
/**
|
||||
* The logger factory for the core logging instances
|
||||
* Manager for the core logging instances
|
||||
*/
|
||||
final class LoggerFactory
|
||||
final class LoggerManager
|
||||
{
|
||||
private IManageConfigValues $config;
|
||||
|
||||
|
@ -44,7 +44,10 @@ final class LoggerFactory
|
|||
$this->profiling = (bool) $config->get('system', 'profiling') ?? false;
|
||||
}
|
||||
|
||||
public function create(): LoggerInterface
|
||||
/**
|
||||
* (Creates and) Returns the logger instance
|
||||
*/
|
||||
public function getLogger(): LoggerInterface
|
||||
{
|
||||
if (! isset($this->logger)) {
|
||||
$this->logger = $this->createProfiledLogger();
|
Loading…
Add table
Add a link
Reference in a new issue