Posted July 12, 20169 yr I'm fairly new to modding, so sorry if this is a simple question, but is there a way to silence the output so that this stuff does not appear in the Eclipse console: I find theses messages largely unhelpful and annoying for what I'm doing right now, and I'd like to be able to have silent output unless there's either an issue or I explicitly say to print something. Is there a way to do this?
July 12, 20169 yr You can achieve something like this by copying the log4j2.xml file from the Forge JAR into src/main/resources and modifying the level of the SysOut and FmlSysOut <AppenderRef> elements to WARN , ERROR , FATAL or OFF (ordered from least specific [most messages] to most specific [least messages]). This will be copied into your mod JAR when you build it with Gradle, which you don't want. There's probably a way to filter it out with Gradle, but I haven't managed to find that yet. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
July 12, 20169 yr Author That almost is what I'm looking for, but how would I print info to the console if I wanted to now since it seems System.out.println is considered INFO level.
July 13, 20169 yr To be more specific, use a log4j2 Logger . You can get one with your mod's name from FMLPreInitializationEvent#getModLog or with any name you want from LogManager.getLogger . Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.