Skip to content

Commit 0f56c3c

Browse files
zrashwanixabbuh
authored andcommitted
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`
1 parent bb3e058 commit 0f56c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/console/logger.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ constructor::
9898

9999
// ...
100100
$formatLevelMap = array(
101-
LogLevel::CRITICAL => ConsoleLogger::INFO,
102-
LogLevel::DEBUG => ConsoleLogger::ERROR,
101+
LogLevel::CRITICAL => ConsoleLogger::ERROR,
102+
LogLevel::DEBUG => ConsoleLogger::INFO,
103103
);
104104
$logger = new ConsoleLogger($output, array(), $formatLevelMap);
105105

0 commit comments

Comments
 (0)