Skip to content

Commit

Permalink
minor #6895 fixing $formatLevelMap array values (zrashwani)
Browse files Browse the repository at this point in the history
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6895).

Discussion
----------

fixing $formatLevelMap array values

Logically the values of `$formatLevelMap` array were switched,
`LogLevel::CRITICAL` key should have value `ConsoleLogger::ERROR` and
`LogLevel::DEBUG` key should have value `ConsoleLogger::INFO`

Commits
-------

0f56c3c fixing $formatLevelMap array values
  • Loading branch information
xabbuh committed Sep 21, 2016
2 parents bb3e058 + 0f56c3c commit 748b3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/console/logger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ constructor::

// ...
$formatLevelMap = array(
LogLevel::CRITICAL => ConsoleLogger::INFO,
LogLevel::DEBUG => ConsoleLogger::ERROR,
LogLevel::CRITICAL => ConsoleLogger::ERROR,
LogLevel::DEBUG => ConsoleLogger::INFO,
);
$logger = new ConsoleLogger($output, array(), $formatLevelMap);

Expand Down

0 comments on commit 748b3e9

Please sign in to comment.