protected function newLogger ($name, LoggerInterface $parent) {
    $logger = $parent;
    if ($parent instanceof HierarchialLogger) {
      $logger = new HierarchialLogger($name);
      $logger->setParent($parent);
    }
    return $logger;
  }
protected function newLogger ($name, LoggerInterface $parent) {
    $logger = $parent;
    if ($parent instanceof HierarchialLogger) {
      $logger = new HierarchialLogger($name);
      $logger->setParent($parent);
    }
    return $logger;
  }
protected function newLogger ( $ name , LoggerInterface $ parent ) { $ logger = $ parent ; if ( $ parent instanceof HierarchialLogger ) { $ logger = new HierarchialLogger ( $ name ) ; $ logger -> setParent ( $ parent ) ; } return $ logger ; }
Create a new LoggerInterface instance.

@param string $name Name of new logger
@param LoggerInterface $parent Closest known ancestor logger
@return LoggerInterface Logger
Create a new LoggerInterface instance .