[TASK] Throw InvalidArgumentException for undefined log level 47/21847/5
authorSteffen Müller <typo3@t3node.com>
Wed, 3 Jul 2013 13:53:00 +0000 (15:53 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 4 Jul 2013 14:40:57 +0000 (16:40 +0200)
commit9aabc565aa7c4bbe0964f35e763aae2ff8e67b2f
tree8c394f0977a856d19174d082c48a1de459c42868
parentc0591ee4cfd3d8230a2dccab66290d9dbf23404c
[TASK] Throw InvalidArgumentException for undefined log level

PSR-3 expects Logger->log() to throw Psr\Log\InvalidArgumentException
when an invalid log level was given.

Resolves: #48876
Releases: 6.2
Change-Id: I89637e72acdce1b1a9e56b838b632d6b486dcae9
Reviewed-on: https://review.typo3.org/21847
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/contrib/Psr/Log/InvalidArgumentException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Log/LogLevel.php
typo3/sysext/core/Tests/Unit/Log/LogLevelTest.php
typo3/sysext/core/ext_autoload.php