Jump to content

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


Major Squirrel

Recommended Posts

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 !

Link to comment
Share on other sites

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 !

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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