Jump to content

[1.7.2] How to enable logger.debug() to show up in the console


WorldsEnder

Recommended Posts

I know there is "org.apache.logging.log4j.Logger" that are being used throughout to print all kinds of messages. I want a call to

logger.debug("Some awesome message");

to show up when I work in eclipse but not when the mod is deployed. How can I set the Level of Messages that are being print to the console to DEBUG?

Link to comment
Share on other sites

There's a way to turn it on in the logger, but I'll be damned if I remember.

 

You need to enable that debug in the logger, if you're going to log debug messages.

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
Link to comment
Share on other sites

Um... Nope.AVI. I mean, it's correct, but you can just use

 

public static Logger logger = LogManager.getLogger("MyMod");

 

and be able to access the logger before the preInit.

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
Link to comment
Share on other sites

You can use it in core mods before the preInit event is EVER fired.

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
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.

Announcements



×
×
  • Create New...

Important Information

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