Jump to content

Send text to log file


Ewe Loon

Recommended Posts

Well, it is standard Java so you can use the Logger class and I think you can get the mod logger instance with something like this (in your proxy or main class):

	public static Logger logger;

@EventHandler
public void preInit(FMLPreInitializationEvent event) 
{
	logger = event.getModLog();
         }

 

If you just mean to the console though, for that you use System.out.println("whatever you want to send");

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

thankyou,

I use System.out.println a lot, and it dosnt get put into the log file in deployed mods,

i have a problem in a single player game, (with the deployed mod) and cant see what is happening because it isn't being logged,

the problem isnt happening when i run it from eclipse

 

 

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.