From: Erik V. <eri...@hc...> - 2007-01-13 22:43:50
|
> I'd prefer to not have too many configuration files running around. > Ideally, all preferences should be set in the UI, so the user doesn't > have to manually edit the configuration file. Not sure if it is feasible and worthwhile for log4j logging. Speaking about that, the version of my.properties that I have checked in may not be the most user-friendly one, as it creates an indefinite amount of logfiles. Logging options ("appenders") that don't are: - the RollingFileAppender, which rolls over at a certain size, whereby a maximum number of old logs can be set. - the FileAppender in overwrite mode, which creates a new log in each run (i.e. game). No backups with this one. Any suggestions about the way to go? In theory we could develop out own appender, which might do whatever we want, but I have already found that grasping the inner workings of log4j is not easy. In addition, we should distinguish between the my.properties version in CVS, which should be a sensible default version, and the version that we really use ourselves. Could we give a different name to the CVS version, and tell the user to change the name to get it working? Erik. |