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
Datei anzeigen 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_oe property

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

$config protected_oe property

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

$environment protected_oe property

The environment name.
protected string $environment
return string