From: Jonathan C. <jco...@gm...> - 2016-06-08 21:44:52
|
This log4j thing is tricky! I have the following file: # Root logger option log4j.rootLogger=DEBUG, stdout # Direct log messages to stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n which I have placed in many places... src/, the base directory, I've added the folder containing it to eclipse's classpath, I've changed -Dlog4j.configuration to point to it... it just doesn't want to configure itself. I can replace all of the debug statements with prints but having the line class/line numbers is super useful! Thanks for any guidance... 2016-06-08 17:00 GMT-04:00 Jonathan Coveney <jco...@gm...>: > I have this largely set up, the one thing I'm not sure is how to properly > set the log4j properties while debugging. Do I just need to put a > log4j.properties on the classpath, or is there some more canonical way? > Thank you! > > 2016-06-08 16:30 GMT-04:00 Jonathan Coveney <jco...@gm...>: > >> Thank you! Very helpful >> >> 2016-06-08 14:19 GMT-04:00 Martin Brumm <dr....@t-...>: >> >>> Good evening Jonathan, >>> >>> i am glad to be of assistance. >>> I personally use Eclipse to handle everything IDE wise. The Code can be >>> found as a git repository on sourceforge. >>> >>> The main component to run resides on the 1.8/1.9 branch in >>> rails.util.rungame. In eclipse you can rightclick on the class and eithe >>> run the class as Java Application or Debug :) Just as easy as that. >>> >>> >>> >>> >>> The following branches are more or less active in the moment: >>> >>> >>> rails_2_develop is the development branch for 2.x >>> rails_2_maintenance is the maintenance branch for 2.0 >>> rails1.8.x is the development and maintenance branch for 1.9 in the >>> moment. >>> rails.2.0 is the release branch of Rails2.0 >>> >>> the other branches you see is development ongoing (more or less private >>> branches denoted by the initials of the developers mbr=is me for example..) >>> >>> If you use eclipse theres currently no need to run gradle. You can >>> handle everything inside your IDE. >>> >>> More in the next post. >>> >>> Regards, >>> Martin >>> >>> >>> Am 08.06.2016 um 19:46 schrieb Jonatha Coveney: >>> >>> One thing that would be particularly useful is how to run my own version >>> of rails, with debugging, so that I can add extra traces etc. Is this easy >>> to do? I am new-ish to gradle >>> >>> 2016-06-08 13:23 GMT-04:00 Jonathan Coveney <jco...@gm...>: >>> >>>> Hello friends! I am an 18xx enthusiast who is also a programmer, and I >>>> really have enjoyed using rails. As such, I'd like to learn the code, and >>>> see if I can't eventually pitch in. >>>> >>>> For now, I'm really curious to see how the game logic is >>>> implemented...any tips for learning the code? Because I imagine there is >>>> also a lot of code around networking, UI, etc, and for now I'm curious to >>>> see how the game itself is driven. >>>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> What NetFlow Analyzer can do for you? Monitors network bandwidth and >>> traffic >>> patterns at an interface-level. Reveals which users, apps, and protocols >>> are >>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>> planning reports. >>> https://ad.doubleclick.net/ddm/clk/305295220;132659582;e >>> _______________________________________________ >>> Rails-devel mailing list >>> Rai...@li... >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>> >>> >> > |