1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 15:14:14 +02:00

unregisterLogger() method added, phpdoc typo

This commit is contained in:
Tomáš Tatarko
2013-11-13 21:33:35 +01:00
parent a9b57679b3
commit c9f8c405ab

View File

@@ -141,6 +141,18 @@ class Logger implements LoggerInterface
self::$loggerInstances[$name] = $instance;
}
/**
* Unregisters Logger instance
* @param string $name The logging channel name
*/
public static function unregisterLogger($name)
{
if(isset(self::$loggerInstances[$name])) {
self::$loggerInstances[$name] = null;
unset(self::$loggerInstances[$name]);
}
}
/**
* Gets instance of requested logging channel
* @param string $name The logging channel name