From: brett l. <wak...@gm...> - 2007-01-14 18:59:08
|
On 1/13/07, Erik Vos <eri...@hc...> wrote: > 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. > Yeah, that's not good. > 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. > I think we don't really need more than one log file just yet. I definitely don't want to clutter up a user's drive unnecessarily. It looks like we should use the FileAppender. > > Could we give a different name to the CVS version, > and tell the user to change the name to get it working? > I don't like that option. I'd like to make things as easy as possible for users. Most people want their software to "just work" without much setup. So, we should provide a properties file with sensible defaults. Some will want to change them, most will just use what we give them. ---Brett |