Logging in Laminas

Code
<?php

use Laminas\Log\Logger;
use 
Laminas\Log\Writer\Mock;
use 
Laminas\Debug\Debug;

$logger = new Logger();

$writer = new Mock();
$logger->addWriter($writer);

$logger->err('An error happened!');
$logger->notice('Did you notice?');
$logger->warn('Danger, Will Robinson!');

// show all added log messages of Mock writer
foreach ($writer->events as $event) {
    
dump($event);
}
Result
^ array:5 [
  "timestamp" => DateTime @1675582310 {#1394
    date: 2023-02-05 08:31:50.981561 Europe/Berlin (+01:00)
  }
  "priority" => 3
  "priorityName" => "ERR"
  "message" => "An error happened!"
  "extra" => []
]
^ array:5 [
  "timestamp" => DateTime @1675582310 {#1395
    date: 2023-02-05 08:31:50.982016 Europe/Berlin (+01:00)
  }
  "priority" => 5
  "priorityName" => "NOTICE"
  "message" => "Did you notice?"
  "extra" => []
]
^ array:5 [
  "timestamp" => DateTime @1675582310 {#1396
    date: 2023-02-05 08:31:50.982028 Europe/Berlin (+01:00)
  }
  "priority" => 4
  "priorityName" => "WARN"
  "message" => "Danger, Will Robinson!"
  "extra" => []
]
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8