You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
use Phalcon\Logger;
use Phalcon\Logger\Adapter\Stream;
use Phalcon\Logger\Formatter\Line;
$adapter = new Stream('php://stdout');
$adapter->setFormatter(new Line('[%date%][%type%] %message%', 'Y-m-d H:i:s'));
$logger = new Logger('messages', [$adapter]);
$logger->log(Logger::INFO, 'info message');
$logger->log(\Psr\Log\LogLevel::INFO, 'info message using psr log level');
my result is
[2020-11-20 13:12:04][info] info message
[2020-11-20 13:12:04][emergency] info message using psr log level
The Logger->log function does not use the intLevel that calculates.
As a result calling log with the PSR-3 LogLevels does not work as expected.
The text was updated successfully, but these errors were encountered: