#Muting certain console messages?
1 messages · Page 1 of 1 (latest)
Believe that’s one of the easier toggleable ones
Have you checked spigot.yml and bukkit.yml?
Yeah I did, however I couldn't find anything related to that message...
You can
((Logger)LogManager.getRootLogger()).addFilter(...);
Pass your implementation of
org.apache.logging.log4j.core.Filter
In there
Hmm maybe smile is up to something
Sorry, I'm afraid that didn't make a whole lot of sense to me 😅
What will that do exactly?
Apply a filter to the log4j root logger which is used by spigot.
ahh a filter, I see. Trying it out now!
I can't seem to figure out how the implementation of org.apache.logging.log4j.core.Filter would look like, I've never used it before :P
Here i made a simple match filter with a Predicate<String>
https://gist.github.com/Flo0/b0a021997d1cd96314b8e683fdc5cb8f
Perfect, thanks!