protected function getLogPath(): string
    {
        if (!$this->logPath) {
            $className = str_replace('\\', '', get_class($this));
            $filename = strtolower(preg_replace(['/([a-z\d])([A-Z])/', '/([^_])([A-Z][a-z])/'], '$1_$2', $className)).'.log';
            $this->logPath = $this->logsDir.'/'.$filename;
        }

        return $this->logPath;
    }