public static function lines(int $tail = 0): ?array
    {
        $log_file =
            Plugin::dataPath().
            DIRECTORY_SEPARATOR."plugin.log";

        if(!file_exists($log_file))
            throw new RequiredFileNotFoundException(
                "A plugin.log file could not be found at '".$log_file."'.");

        $lines = preg_split("/[\r\n|\r|\n]+/", file_get_contents($log_file));

        // Remove the final empty line...
        if($lines[count($lines) - 1] === "")
            unset($lines[count($lines) - 1]);

        if($tail < 0)
            return null;

        if($tail === 0)
            return $lines;

        return array_slice($lines, -$tail, $tail);
    }