Reporter
class Reporter (View source)
Multi-logger reporter
Traits
Singleton pattern trait
Methods
registerLogger(string $key, LoggerInterface $logger)
Add a replace a logger.
unregisterLogger(string $key)
Remove a logger by its key
__call(string $method, array $args)
Invoke registered loggers corresponding method
static mixed
__callStatic(string $method, array $args)
Invoke the corresponding method on all loggers registered to the Reporter default instance.
__construct()
No description
Details
in SingletonTrait at line 23
static $this
getInstance()
Get the class singleton instance
at line 31
registerLogger(string $key, LoggerInterface $logger)
Add a replace a logger.
This method is also callable statically. In this case, the class singleton will be used.
at line 44
unregisterLogger(string $key)
Remove a logger by its key
This method is also callable statically. In this case, the class singleton will be used.
at line 68
__call(string $method, array $args)
Invoke registered loggers corresponding method
at line 103
static mixed
__callStatic(string $method, array $args)
Invoke the corresponding method on all loggers registered to the Reporter default instance.