Darkhax-Minecraft / Stuff-A-Sock-In-It

GNU Lesser General Public License v2.1
5 stars 3 forks source link

Doesn't work. #19

Open cyberpwnn opened 2 years ago

cyberpwnn commented 2 years ago

I'd love access to the actual filtering xmls for log4j on mods that use it. Anyway, I've tried tons of versions, now that I think about it, this mod has never actually worked. I've tried this on latest 1.12.2 and the actual latest version in another pack.

Perhaps better documentation about what this mod can actually filter out would be helpful?

Simple example:

general {
    # A list of strings. If a console message contains any of these, it will be filtered out of the log. [default: ]
    S:BasicFilter <
        Potentially Dangerous alternative prefix
    >
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `debugorb`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `radiant_key`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `gbook_arsenal_condition`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `raw_quartz`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `shaped_quartz`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `manifest`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `radiant_amphora`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `scepter_revelation`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `scepter_manipulation`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `tome_arcana`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `letter_invitation`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `letter_resignation`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `writ_expulsion`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `containment_field`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `matrix_brace`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `material_interface`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `radiant_dust`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `scintillating_inlay`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `devouring_charm`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `fabrial`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `slaughtergleam`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `murdergleam`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `agegleam`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `cleansegleam`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `switchgleam`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `salvegleam`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `munchstone`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `transferstone`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `orderstone`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `mindspindle`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `elixirspindle`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `mountaintear`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `rivertear`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `parchtear`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `phoenixway`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `stormway`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `chromatic_powder`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `full_spectrum_chromatic_powder`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
[21:50:50] [Client thread/WARN] [FML]: Potentially Dangerous alternative prefix `arcanearchives` for name `gemsocket`, expected `opensecurity`. This could be a intended override, but in most cases indicates a broken mod.
MrRedstoneA1 commented 2 years ago

Same here. Using 1.12.2 and tried different formatting, even just one word, and it did absolutely nothing. Still getting log spam that contains the single word. It's a shame because I desperately need to stop a certain mod from spamming over 100 thousand lines of error messages EVERY TICK. Eventually the log would reach terabtytes in size if I didn't force minecraft to close.

cajlo commented 1 year ago

How I made it to work with regexes: Used https://www.freeformatter.com/java-regex-tester.html#before-output

In config:

general {
    # A list of strings. If a console message contains any of these, it will be filtered out of the log. [default: ]
    S:BasicFilter <
     >

    # A list of regex patterns. If a console message matches one of these filters they will be removed from the log. [default: ]
    S:RegexFilters <
        Found[\S ]+This is not recommended, @Mods should be in a separate jar from the coremod\.
        (\[Quark\][\S ]+abled)
     >
}

So, the first regex did nothing, because sasit didn't load yet. The second one have removed this text:

[01:42:48] [Client thread/INFO] [Quark]: Module decoration is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module automation is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module management is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module tweaks is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module building is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module misc is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module client is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module vanity is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module experimental is disabled
[01:42:48] [Client thread/INFO] [Quark]: Module oddities is enabled
[01:42:48] [Client thread/INFO] [Quark]: Module world is enabled