$logger
$logger : \Omega\Logging\LoggerInterface|null
The logger instance.
Logger aware trait.
The LoggerAwareTrait provides the implementation for objects that need to be logger-aware by allowing them to store and use a logger instance. This trait is part of the Omega Logging package and helps in injecting a logger into any class that uses it. It includes the following elements:
$logger: A protected property that stores an instance of the LoggerInterface. It is nullable, meaning an object can either have a logger instance assigned or none.
setLogger(LoggerInterface $logger): A method used to assign a logger instance to the object. This enables the object to log messages through the provided logger.
This trait is typically used in combination with the LoggerAwareInterface to ensure objects can accept and manage logger instances, promoting consistency in logging across different parts of the application.
$logger : \Omega\Logging\LoggerInterface|null
The logger instance.