public static function write(string $message, string $eol = "\r\n"): string
    {
        $log_file =
            Plugin::dataPath().
            DIRECTORY_SEPARATOR."plugin.log";

        if(!file_exists(dirname($log_file)))
            mkdir(dirname($log_file));

        $line = sprintf(
            "[%s] %s",
            //(new DateTimeImmutable())->format("Y-m-d G:i:s.u"),
            (new \DateTime())->format(self::TIMESTAMP_FORMAT),
            $message
        );

        file_put_contents(
            $log_file,
            $line.$eol,
            FILE_APPEND | LOCK_EX
        );

        return $line;
    }