Posted February 22, 20205 yr 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
February 22, 20205 yr 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 February 22, 20205 yr 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.