feature #885 Allow strings for levels in the monolog service provider (igorw)
This PR was merged into the 1.2.x-dev branch. Discussion ---------- Allow strings for levels in the monolog service provider The monolog service provider requires a constant on Monolog\Logger to be referenced, which has an integer value. This is not very practical when working with external configuration files. This patch accepts strings like debug, info, error, etc. that are translated to the corresponding logger constant values. This is an alternative to #882. Commits ------- 6c97e670 Fix JSON syntax error in monolog provider docs a7cba302 Reword the documentation on string logger levels 2ef826ce Backport static:: to classname:: for PHP 5.3 compatibility 121f3f2b Allow strings for levels in the monolog service provider
Showing
Please register or sign in to comment