1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-26 02:56:27 +02:00

Merge remote-tracking branch 'origin/1.0' into 1.x

This commit is contained in:
Jordi Boggiano
2016-03-01 15:40:28 +00:00
3 changed files with 29 additions and 0 deletions

View File

@@ -153,6 +153,19 @@ class Logger implements LoggerInterface
return $this->name;
}
/**
* Return a new cloned instance with the name changed
*
* @return static
*/
public function withName($name)
{
$new = clone $this;
$new->name = $name;
return $new;
}
/**
* Pushes a handler on to the stack.
*