addPossibleInsightClass(EngineVersionInformation::class) ->addPossibleInsightClass(ModLoadInformation::class) ->addPossibleInsightClass(ModMissingProblem::class) ->addPossibleInsightClass(ServerExceptionProblem::class); } public static function getDetectors(): array { return [ (new FilenameDetector()) ->setPattern('/DebugLog-server\.txt$/') ->setWeight(0.95), (new WeightedSinglePatternDetector()) ->setPattern('/version=\d+\.\d+\.\d+ [a-f0-9]{40}/') ->setWeight(0.95), (new WeightedSinglePatternDetector()) ->setPattern('/^\[\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\] (?:LOG|WARN|ERROR):\s+\w+\s+f:\d+, t:\d+, st:[\d,]+>/m') ->setWeight(0.80), ]; } public function getTitle(): string { return "Project Zomboid Debug Server Log"; } }