Posted May 10, 201510 yr Is there any way to customise what's printed in the server/Eclipse console? Like instead of displaying this: [sTDOUT]: [apocalypse.fandomcraft.structures.DungeonDekuTree:generateSurface:1088]: Successfully built a forest dungeon at (291, 75, 529) ...have it display as this?: [FandomCraft]: Successfully built a forest dungeon at (291, 75, 529) I've tried looking through the Vanilla/Forge classes but can't find where they do it.
May 10, 201510 yr Use a Logger, e.g. public static final Logger logger = LogManager.getLogger(your_mod_id); // somewhere in your code: logger.info("Here's a message"); // prints: [13:27:48] [server thread/INFO] [your_mod_id] Here's a message It is possible to further format / customize the output, but that is more work than it's worth, in my opinion. http://i.imgur.com/NdrFdld.png[/img]
May 11, 201510 yr Quick interjection: The FMLinit events give you a logger. event.getModLog() if I recall correctly. Just save a reference to that in your main class. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.