Changes

→‎Logging: Adding the "Example Log" section.
Line 88: Line 88:  
   this.Monitor("This will only appear if verbose logging is enabled.", LogLevel.Trace);
 
   this.Monitor("This will only appear if verbose logging is enabled.", LogLevel.Trace);
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
===Example Log===
 +
 +
Here's the start of an example <span style="font-family: monospace;">SMAPI-latest.txt</span> log file:
 +
 +
<pre>[23:26:19 INFO  SMAPI] SMAPI 3.13.4 with Stardew Valley 1.5.6 (build 22018) on Microsoft Windows 10 Pro
 +
[23:26:19 INFO  SMAPI] Mods go here: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods
 +
[23:26:19 TRACE SMAPI] Log started at 2022-02-25T05:26:19 UTC
 +
[23:26:24 DEBUG SMAPI] Waiting for game to launch...
 +
[23:26:25 TRACE game] NoFpsCap: This feature is not available
 +
[23:26:26 DEBUG SMAPI] Loading mod metadata...
 +
[23:26:26 DEBUG SMAPI] Loading mods...
 +
[23:26:26 TRACE SMAPI]    CJB Cheats Menu (from Mods\CJBCheatsMenu\CJBCheatsMenu.dll)...
 +
[23:26:27 TRACE SMAPI]      Rewrote CJBCheatsMenu.dll for OS...
 +
[23:26:27 TRACE SMAPI]      Rewrote CJBCheatsMenu.dll to fix SpriteBatch methods...
 +
[23:26:27 TRACE SMAPI]    CJB Item Spawner (from Mods\CJBItemSpawner\CJBItemSpawner.dll)...
 +
[23:26:27 TRACE SMAPI]      Rewrote CJBItemSpawner.dll for OS...
 +
[23:26:27 TRACE SMAPI]    TestSDVMod (from Mods\ClassLibrary1\ClassLibrary1.dll)...
 +
[23:26:27 TRACE SMAPI]    Console Commands (from Mods\ConsoleCommands\ConsoleCommands.dll)...
 +
[23:26:27 TRACE SMAPI]    Error Handler (from Mods\ErrorHandler\ErrorHandler.dll)...
 +
[23:26:27 TRACE SMAPI]      Detected game patcher in assembly ErrorHandler.dll.
 +
[23:26:27 TRACE SMAPI]    Save Backup (from Mods\SaveBackup\SaveBackup.dll)...
 +
[23:26:27 INFO  SMAPI] Loaded 6 mods:
 +
[23:26:27 INFO  SMAPI]    CJB Cheats Menu 1.29.1 by CJBok and Pathoschild | Simple in-game cheats menu!
 +
[23:26:27 INFO  SMAPI]    CJB Item Spawner 2.1.4 by CJBok and Pathoschild | Simple in-game item spawner!
 +
[23:26:27 INFO  SMAPI]    Console Commands 3.13.4 by SMAPI | Adds SMAPI console commands that let you manipulate the game.
 +
[23:26:27 INFO  SMAPI]    Error Handler 3.13.4 by SMAPI | Handles some common vanilla errors to log more useful info or avoid breaking the game.
 +
[23:26:27 INFO  SMAPI]    Save Backup 3.13.4 by SMAPI | Automatically backs up all your saves once per day into its folder.</pre>
32

edits