This is a minecraft mod for managing debug logs and getting information to a mod dev easily from a player that had a problem without requiring much technical knowledge.
Let's say you're a player and something broke. Most of the time, the player may not have the technical knowledge or getting the logs to you is a PITA. This helps fix that. All the player has to do is go to the DebugHandler.cfg file, change debug to true, and start up minecraft. They then go through the steps of what the problem was and when they leave the world they will get a popup box with a URL. This is an example of what it looks like http://hastebin.com/xokacerato
Simple! Download the deobf jar from the releases https://github.com/HeisenBugDev/DebugHandler/releases and set this up as a jar dependency. To actually use this mod outside of a dev env you just need to use the universial jar file just as you would for a normal mod.
Once you've set that up go to your mod's main class. It doesn't have to be here, but I prefer it that way.
public static LogHandler logHandler = new LogHandler("MyAwesomeMod");
public void preInit(FMLPreInitializationEvent event) {
DebugRegistry.addLogHandler(logHandler);
}
Then, wherever you would put a println for debugging, now put:
MyFancyModClass.logHandler.debugPrint("I can do a string");
MyFancyModClass.logHandler.debugPrint(TileEntityAwesome, "This will give the coords for the block and this string");
MyFancyModClass.logHandler.debugPrint(MyFancyObject);