The documentation you are viewing is for an older version of this component.
Switch to the latest (v5) version.
config/config.php add an entry for the config provider \Dot\Log\ConfigProvider::class\Frontend\App\ConfigProvider.php\Admin\App\ConfigProvider::class\MyProject\ConfigProvider::class etc.config/autoload/logger.global.php. Follow the Configuring the writer(s) chapter for a simple working example.
Dot\Log\ConfigProviderhas an abstract factoryLoggerAbstractServiceFactory::classwhich corresponds to the alias, not the class name. Instead of requestingLaminas\Log\Logger::classfrom the container, usedot-log.my_logger(or justmy_loggerif using laminas-log).