public function add_logger(base_logger $logger) {
        $existing = $this->logger;
        while ($existing->get_next()) {
            $existing = $existing->get_next();
        }
        $existing->set_next($logger);
    }
public function add_logger(base_logger $logger) {
        $existing = $this->logger;
        while ($existing->get_next()) {
            $existing = $existing->get_next();
        }
        $existing->set_next($logger);
    }
public function add_logger ( base_logger $ logger ) { $ existing = $ this -> logger ; while ( $ existing -> get_next ( ) ) { $ existing = $ existing -> get_next ( ) ; } $ existing -> set_next ( $ logger ) ; }
Inserts a new logger at end of logging chain.

@param base_logger $logger New logger to add
Inserts a new logger at end of logging chain .