Console Filter

Console Filter

1M Downloads

Filter not working

xJon opened this issue ยท 5 comments

commented

Hi,
I'm using version 1.1.1 with Forge 14.23.5.2854.
I have this console spam from the Lost Books mod, which adds ~6000 extra lines to the log. I tried to use the mod to filter them out but I was unable to (although I was able to filter other things).
I tried:
[toast.lostBooks.book.LostBookCollection:size:148]: java.lang.NullPointerException
[toast.lostBooks.book.LostBookCollection:size:148]:
java.lang.NullPointerException
Is there anything that can be done?
Thank you!

commented

Because of the way the mod works, and more generally the way logging works, you can only filter messages based on the content that comes after the [toast.lostBooks.book.LostBookCollection:size:148]: part. Your use case is a bit difficult because there's so many individual messages to filter out, without much in common between them. However, I think you could make this work by having filters for phrases such as at toast., at jeresources., at mezz., etc. Try this and let me know if it works.

commented

Thank you for the quick reply! I will try what you suggested, but why did filtering java.lang.NullPointerException not work?

commented

Hi,
I tried using at toast., at jeresources. & at mezz.jei. and unfortunately it did not filter any of them.

commented

Thank you! I tested and you can reproduce this log spam with only Lost Books, JustEnoughItems & JustEnoughResources installed.

commented

In that case, I'm guessing there's no internal filter configured for the source of these messages. I'll look into it and see what I can do.