Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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:

 

NM5mkV6.png

 

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?

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.

  • 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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.