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 @1618081171 {#1394
    date: 2021-04-10 20:59:31.771879 Europe/Berlin (+02:00)
  }
  "priority" => 3
  "priorityName" => "ERR"
  "message" => "An error happened!"
  "extra" => []
]
^ array:5 [
  "timestamp" => DateTime @1618081171 {#1395
    date: 2021-04-10 20:59:31.772126 Europe/Berlin (+02:00)
  }
  "priority" => 5
  "priorityName" => "NOTICE"
  "message" => "Did you notice?"
  "extra" => []
]
^ array:5 [
  "timestamp" => DateTime @1618081171 {#1396
    date: 2021-04-10 20:59:31.772142 Europe/Berlin (+02:00)
  }
  "priority" => 4
  "priorityName" => "WARN"
  "message" => "Danger, Will Robinson!"
  "extra" => []
]
Used Versions
PHP 8.0, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8