[TASK] Convert log levels from string to integer 15/21815/4
authorSteffen Müller <typo3@t3node.com>
Tue, 2 Jul 2013 16:37:49 +0000 (18:37 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 4 Jul 2013 14:03:18 +0000 (16:03 +0200)
commitc0591ee4cfd3d8230a2dccab66290d9dbf23404c
tree1d9cddddaeea8dff314b4ca5bc37301efcc8715c
parentc45b2bf844e064ef9d7eadb4163f0c5265bf407b
[TASK] Convert log levels from string to integer

In PSR-3, severity levels for log() can be given as a string.
If a string is given, it gets converted to the corresponding
constant of LogLevel.

Resolves: #48881
Releases: 6.2
Change-Id: I8d10d10b947a20bac483f7d3775a2d2fd7be52f6
Reviewed-on: https://review.typo3.org/21815
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Log/LogLevel.php
typo3/sysext/core/Classes/Log/Logger.php
typo3/sysext/core/Tests/Unit/Log/LogLevelTest.php