Log Spam Filter

Throttles repeated identical messages in the SMAPI log, with options to throttle similar or too quick messages as well, and always allow specified sources.
The SMAPI log is great, but if you don't pay attention it can spam the same error or log messages each frame, needlessly filling up space, writing to disk, and even slowing down your game.

This mod tries to fix that a bit, by catching messages that fit custom parameters and throttling them for a specific period of time.

It has the following configurable options:


    EnableMod - enable the mod
    IsDebug - post SMAPI log messages every time throttling occurs (default: false)

    AllowList - always allow from specific sources (usually the name of a mod, the last part of a SMAPI log line before the ]), comma-separated

    MSSpawnThrottle - time in milliseconds to throttle a source after catching spam (default: 1000)

    MSBetweenMessages - throttle a source if it posts messages more frequently than this many milliseconds (default: 0)
    MSBetweenIdenticalMessages - throttle a source if it posts identical messages more frequently than this many milliseconds (default: 0)
    MSBetweenSimilarMessages - throttle a source if it posts similar messages more frequently than this many milliseconds (default: 0)
    PercentSimilarity - percent similarity two consecutive messages must be to consider them similar (default: 0)


Similarity is pretty rudimentary, don't expect deep checking. I don't recommend turning on similar or all message throttling unless you are a mod dev and/or don't really care about providing complete SMAPI logs.

All of the config variables except for AllowList can be configured using GMCM. You can edit the mod's config.json file to modify AllowList.

There is a tally of how many messages have been throttled in the GMCM interface.


Technical

Requires SMAPI, uses Harmony.

Compatible with Mod Updater for automatic updates.

Code is at https://github.com/aedenthorn/StardewValleyMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.

A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.

The Log Spam Filter Team

profile avatar
Owner
  • 25
    Followers
  • 270
    Projects
  • 4.7M
    Downloads

More from ErintheView all

  • Advanced Auto-Grabber project image

    Advanced Auto-Grabber

    • 16
    • Mods

    Lets auto-grabbers grab outdoors, grab only from a specified animal type, grab truffles, and send products to chests.

    • 16
    • May 12, 2026
    • Mods
    • +1
  • Custom Monsters project image

    Custom Monsters

    • 39
    • Mods

    Lets modders create and spawn custom monster types.

    • 39
    • May 11, 2026
    • Mods
  • Prismatic Flowers project image

    Prismatic Flowers

    • 171
    • Mods

    Gives planted flowers a chance to be prismatic!

    • 171
    • May 10, 2026
    • Mods
  • Like a Duck to Water project image

    Like a Duck to Water

    • 12.6K
    • Mods

    Makes ducks actually want to swim in water once they have been fed and petted; also makes water tiles more accessible to ducks and adds friendship points towards the farmer when ducks are able to swim.

    • 12.6K
    • May 8, 2026
    • Mods
  • Advanced Auto-Grabber project image

    Advanced Auto-Grabber

    • 16
    • Mods

    Lets auto-grabbers grab outdoors, grab only from a specified animal type, grab truffles, and send products to chests.

    • 16
    • May 12, 2026
    • Mods
    • +1
  • Custom Monsters project image

    Custom Monsters

    • 39
    • Mods

    Lets modders create and spawn custom monster types.

    • 39
    • May 11, 2026
    • Mods
  • Prismatic Flowers project image

    Prismatic Flowers

    • 171
    • Mods

    Gives planted flowers a chance to be prismatic!

    • 171
    • May 10, 2026
    • Mods
  • Like a Duck to Water project image

    Like a Duck to Water

    • 12.6K
    • Mods

    Makes ducks actually want to swim in water once they have been fed and petted; also makes water tiles more accessible to ducks and adds friendship points towards the farmer when ducks are able to swim.

    • 12.6K
    • May 8, 2026
    • Mods