src/Logger.php
public function withLogLevel($level)
    {
        $logger = clone $this;
        $logger->level = $this->convertLevel($level);
        return $logger;
    }
public function withLogLevel($level)
    {
        $logger = clone $this;
        $logger->level = $this->convertLevel($level);
        return $logger;
    }
public function withLogLevel ( $ level ) { $ logger = clone $ this ; $ logger -> level = $ this -> convertLevel ( $ level ) ; return $ logger ; }
Get a new instance logging at a different level

@param string $level One of the LogLevel constants

@return Logger
Get a new instance logging at a different level