Spork Code Libraries

ServiceFactory

Service factory to create and configure a Logger instance optionally overriding default class

Example configuration array(

'log' => array(
    'class' => 'My\Logger\Class',
    ...
),

);

Summary

Methods

createService()

Properties

Constants

Implements

Methods

createService()

createService(\Zend\ServiceManager\ServiceLocatorInterface  $serviceLocator) : \Zend\Log\LoggerInterface

Creates a Logger service

Parameters

\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator

Returns

\Zend\Log\LoggerInterface
See also