FilteredLogs
Filtered Logs utility for Silksong
About this mod Author’s original text
FilteredLogs
Filters logs to include only those from specified log sources.
This mod only applies when the caller has been built in debug mode.
Usage
This mod should be declared as a package reference by placing the following line in your csproj file:
See the nuget page for the most up to date version.
This mod should be declared as a soft dependency, to ensure that it loads before
your mod. To do so, place the following attribute on your plugin class, below
the BepInAutoPlugin attribute:
[BepInDependency("io.github.flibber-hk.filteredlogs", BepInDependency.DependencyFlags.SoftDependency)]
This mod should typically not be declared as a dependency; the compiler will
remove all references to this mod's API when built in release mode so your mod will
function as normal on other users' machines. You will have to download this mod
yourself, of course.
Typically, you should place the following line at the start of your plugin's awake method:
FilteredLogs.API.ApplyFilter(Name);
This will cause all logs not from your mod to be filtered. (Of course, when building in release mode
this line will be ignored by the compiler.)
The overloads of ApplyFilter provide alternate ways to filter the logs; for more details consult the documentation.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: