Issue Bug Closed

#56998Streamline exceptions types in Logging API

Steffen Müller 03/17/14, 16:46 updated 10/02/18, 11:58

Description

LogManager::addWriter() and LogManager::addProcessor() catch exceptions and rethrow them as \RangeException. This is not a sufficient type, because:
  • calling makeInstance() in addWriter() and addProcessor() could trigger \InvalidArgumentException
  • \RangeException in LogLevel::validateLevel() has been replaced by \Psr\Log\InvalidArgumentException.

Reviews 1