• Fabien Potencier's avatar
    feature #885 Allow strings for levels in the monolog service provider (igorw) · 0be92fa8
    Fabien Potencier authored
    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
    0be92fa8
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
src/Silex Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.rst Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...