@{ ViewData["Title"] = "SMAPI log parser"; IDictionary contentPacks = Model.ParsedLog?.Mods ?.GroupBy(mod => mod.ContentPackFor) .Where(group => group.Key != null) .ToDictionary(group => group.Key, group => group.ToArray()); Regex slugInvalidCharPattern = new Regex("[^a-z0-9]", RegexOptions.Compiled | RegexOptions.IgnoreCase); string GetSlug(string modName) { return slugInvalidCharPattern.Replace(modName, ""); } } @using System.Text.RegularExpressions @using Newtonsoft.Json @using StardewModdingAPI.Web.Framework.LogParsing.Models @model StardewModdingAPI.Web.ViewModels.LogParserModel @section Head { } @********* ** Intro *********@

This page lets you upload, view, and share a SMAPI log to help troubleshoot mod issues.

@if (Model.ParsedLog?.IsValid == true) { } else if (Model.ParsedLog?.IsValid == false) { } else { } @********* ** Parsed log *********@ @if (Model.ParsedLog?.IsValid == true) {

Log info

Game info:
Stardew Valley: @Model.ParsedLog.GameVersion on @Model.ParsedLog.OperatingSystem
SMAPI: @Model.ParsedLog.ApiVersion
Folder: @Model.ParsedLog.GamePath
Log started: @Model.ParsedLog.Timestamp.UtcDateTime.ToString("yyyy-MM-dd HH:mm") UTC ({{localTimeStarted}} your time)

@foreach (var mod in Model.ParsedLog.Mods.Where(p => p.ContentPackFor == null)) { @if (mod.Errors == 0) { } else if (mod.Errors == 1) { } else { } }
Installed mods: click any mod to filter show all hide all
@mod.Name @mod.Version @if (contentPacks != null && contentPacks.TryGetValue(mod.Name, out LogModInfo[] contentPackList)) {
@foreach (var contentPack in contentPackList) { + @contentPack.Name @contentPack.Version
}
}
@mod.Authorno errors@mod.Errors error@mod.Errors errors
Filter messages: TRACE | DEBUG | INFO | ALERT | WARN | ERROR
@foreach (var message in Model.ParsedLog.Messages) { string levelStr = message.Level.ToString().ToLower(); if (message.Repeated > 0) { } }
@message.Time @message.Level.ToString().ToUpper() @message.Mod @message.Text
repeats [@message.Repeated] times.
} else if (Model.ParsedLog?.IsValid == false) {

Raw log

@Model.ParsedLog.RawText
}