PHP Class Autarky\Logging\DefaultLogConfigurator

You can easily change the path to log to by extending this class and overriding either getLogDirectory, getLogFilename or getLogPath.
Inheritance: implements Autarky\ConfiguratorInterface
Show file Open project: autarky/framework

Protected Properties

Property Type Description
$channelManager ChannelManager Channel manager instance.
$config Autarky\Config\ConfigInterface The config store instance.
$environment string The environment name.

Public Methods

Method Description
__construct ( ChannelManager $channelManager, Application $application, Autarky\Config\ConfigInterface $config ) Constructor.
configure ( )

Protected Methods

Method Description
getLogDirectory ( )
getLogFilename ( )
getLogPath ( )
makeDefaultLogger ( )

Method Details

__construct() public method

Constructor.
public __construct ( ChannelManager $channelManager, Application $application, Autarky\Config\ConfigInterface $config )
$channelManager ChannelManager
$application Autarky\Application
$config Autarky\Config\ConfigInterface

configure() public method

public configure ( )

getLogDirectory() protected method

protected getLogDirectory ( )

getLogFilename() protected method

protected getLogFilename ( )

getLogPath() protected method

protected getLogPath ( )

makeDefaultLogger() protected method

protected makeDefaultLogger ( )

Property Details

$channelManager protected property

Channel manager instance.
protected ChannelManager,Autarky\Logging $channelManager
return ChannelManager

$config protected property

The config store instance.
protected ConfigInterface,Autarky\Config $config
return Autarky\Config\ConfigInterface

$environment protected property

The environment name.
protected string $environment
return string