Logger abstract service factory.

Allow to configure multiple loggers for application.

package Default

 Methods

Determine if we can create a service with name

canCreateServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $services, string $name, string $requestedName) : boolean
inherited_from \Zend\ServiceManager\AbstractFactoryInterface::canCreateServiceWithName()

Parameters

$services

\Zend\ServiceManager\ServiceLocatorInterface

$name

string

$requestedName

string

Returns

boolean

Create service with name

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

Parameters

$services

\Zend\ServiceManager\ServiceLocatorInterface

$name

string

$requestedName

string

Returns

\Zend\Log\Logger

Retrieve configuration for loggers, if any

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

Parameters

$services

\Zend\ServiceManager\ServiceLocatorInterface

Returns

array

processConfig()

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

Parameters

$config

$services

 Properties

 

$config

$config : array

Default

 

Configuration key holding logger configuration

$configKey : string

Default

'log'