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.

[1.12.2][SOLVED] Logging MODID log messages into default Console of IntelliJ ?

Featured Replies

Posted

Good evening,

 

Has anyone achieved to log their mod log messages into IntelliJ default Console when running/debugging Minecraft Client/Server ?

My log messages are well written into the fml-client-latest.log file and I can create a new IntelliJ Log channel to display my log messages but I would like them to be into the default console.

 

public static final Logger  logger = LogManager.getLogger(Questly.MODID);


Can anyone help me on this one ?


Thanks for you help !

Edited by Major Squirrel

Squirrel ! Squirrel ! Squirrel !

Clarify, do you want your messages in the console to look like this:

[15:15:22] [main/INFO] [Fine Technology]: A message from mod logger

or something else?

  • Author
53 minutes ago, Alexiy said:

Clarify, do you want your messages in the console to look like this:

[15:15:22] [main/INFO] [Fine Technology]: A message from mod logger

or something else?


It is already displayed so :
 

[11:58:59] [main/DEBUG] [FML/]: Overriding dimension: using 0
[11:59:04] [main/DEBUG] [questly/]: QuestBlock has received a right-click !

(This is the content from fml-client-latest.log)

Normally, a log message is displayed into the default IntelliJ Console window but for some reason it doesn't happen.

PSHB9ic.png

(The Console window is the default one from IntelliJ, the "fml-client-latest" one has been created by me, from the fml-client-latest.log file)

 

Contents from each console is different :

T9rwTp1.png

 

I don't understand what is going on, to be honest. Why are my log messages not displayed into the default Console ?

Squirrel ! Squirrel ! Squirrel !

  • Author

[SOLVED]

Okay my bad, I just found out that debug messages aren't displayed in the default Console. Higher levels (such as info) are displayed correctly !

Squirrel ! Squirrel ! Squirrel !

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.