Jump to content

Recommended Posts

Posted

I'm using eclipse

I understand i should be using the forge logger

 

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

static final Logger  Logger= LogManager.getLogger(MODID);

 

as an example i do ; Logger.debug("Help Me");

 

where does the file go?   it doesn't show up on my Eclipse console, or any log file i can find in  project directory..

 

probably a silly question but i haven't had a log file since 1.13

Posted (edited)

The log files generated when you run through eclipse are in the run/logs folder within your project folder. If you're using debug, I would guess you'd need to check debug.log to see if your note gets printed.

 

I just tested myself using the latest 1.15.2 build, and it worked fine for me. :)

 

*edit: Not sure if it matters, but I would change the name of your logger so it is not exactly the same as the class name. Make it all caps or something :)

Edited by Ugdhar

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.