Ниже мой обработчик.
use Psr\Log\LoggerInterface;
use Eqsgroup\Entity\Import as ImportEntity;
class ImportHandler {
public function __construct(LoggerInterface $logger) {
$this->logger = $logger;
}
public function handle(ImportEntity $data): array {
$this->logger->error("hi");
}
}
Но \ var \ log \ dev.log не имеет этой записи "привет".
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]
Это моя монологическая конфигурация.