public function addLogger(\Plop\LoggerInterface $logger /*, ... */)
    {
        $loggers = func_get_args();
        foreach ($loggers as $logger) {
            if (!($logger instanceof \Plop\LoggerInterface)) {
                throw new \Plop\Exception('Not a logger');
            }
        }

        foreach ($loggers as $logger) {
            $this[] = $logger;
        }
        return $this;
    }
public function addLogger(\Plop\LoggerInterface $logger /*, ... */)
    {
        $loggers = func_get_args();
        foreach ($loggers as $logger) {
            if (!($logger instanceof \Plop\LoggerInterface)) {
                throw new \Plop\Exception('Not a logger');
            }
        }

        foreach ($loggers as $logger) {
            $this[] = $logger;
        }
        return $this;
    }
public function addLogger ( \ Plop \ LoggerInterface $ logger /*, ... */ ) { $ loggers = func_get_args ( ) ; foreach ( $ loggers as $ logger ) { if ( ! ( $ logger instanceof \ Plop \ LoggerInterface ) ) { throw new \ Plop \ Exception ( 'Not a logger' ) ; } } foreach ( $ loggers as $ logger ) { $ this [ ] = $ logger ; } return $ this ; }
Register a logger.

This is effectively a shortcut for the following piece
of code:
\code
$logging[] = $logger;
\endcode
It is kept to help other tools that operate on Plop
(such as Dependency Injection Containers) but do not
support object subscripting (ie. array notation).

\param Plop::LoggerInterface $logger
New logger to register.

\retval Plop
The current logging service (ie. \a $this).

\note
Since the Plop class acts as a singleton,
any logger registered with this method
can be retrieved later by calling
\code
(Plop::getInstance())->getLogger();
\endcode
with the appropriate arguments.

\note
You may register several loggers at the same
time with this method. Just pass each logger
to register as an argument to this method.
Register a logger .