LoggerTrait
Trait LoggerTrait
Trait for getting and setting the logger.
Table of Contents
Properties
- $logger : LoggerInterface
- The logger to use
Methods
- getLogger() : LoggerInterface
- Get the logger
- setLogger() : void
- Set the logger if needed
Properties
$logger
The logger to use
protected
LoggerInterface
$logger
Methods
getLogger()
Get the logger
public
getLogger() : LoggerInterface
Return values
LoggerInterfacesetLogger()
Set the logger if needed
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface