Logger abstract service factory.

Allow to configure multiple loggers for application.

 Methods

Determine if we can create a service with name

canCreateServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $services, string $name, string $requestedName) : bool

Parameters

$name

string

$requestedName

string

Returns

bool

Create service with name

createServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $services, string $name, string $requestedName) : \Zend\Log\Logger

Parameters

$name

string

$requestedName

string

Returns

Retrieve configuration for loggers, if any

getConfig(\Zend\ServiceManager\ServiceLocatorInterface $services) : array

Parameters

Returns

array

processConfig()

processConfig($config, \Zend\ServiceManager\ServiceLocatorInterface $services) 

Parameters

$config

$services

 Properties

 

$config

$config : array

 

Configuration key holding logger configuration

$configKey : string