From: Erik V. <eri...@hc...> - 2007-01-11 19:51:00
|
I'm considering to add log4j logging, to move (or duplicate) the current console messages to a log file. (This will not affect the Log Window, which is actually a misnomer for a Game Report window). Any objections? Remain two questions: - how many loggers to create? Perhaps simplest is one in the top of each class hierarchy. One per package might be another approach, but then we would need some central class with a protected static logger for easy access by any class in each package. - what configuration file? Default is log4j.properties, but I am considering to include the log4j properties in a common properties file. This would require setting a system property on the command line (if possible with a default in the main() method). One additional item I would like to include in such a file would be a choice for the type of tile picture to use: GIF or SVG. Today I worked on another PC where the SVG's were not loaded yet, and it struck me again how much better the GIFs looked. So I would like to be able to set that as a preference. Any comments? Erik Vos |