From: Kevin G. <ke...@go...> - 2002-09-13 15:55:25
|
log4j defaults to append, Log::Dispatch defaults to truncate. I agree, the log4j behavior is more desirable. The attached should take care of it, don't you think? The JavaMap::FileAppender was already defaulting to append, but there was some nonsense in the conditional, so I fixed it. Erik W. Selberg wrote: > I'd say yes, even if it was contrary to log4j. I hate loggers that > automatically nuke the previous log... 'cuz usually that's the one I > want. :) > > -e > > Msc...@ao... wrote: > >> Hey guys, >> >> I keep running into the same issue that Log::Dispatch::File by default >> overwrites an existing log file, because I forget to explicitly tell >> my configuration to append: >> >> Log4perl.logger = WARN, File >> Log4perl.appender.File= Log::Dispatch::File >> Log4perl.appender.File.layout=Log::Log4perl::Layout::SimpleLayout >> Log4perl.appender.File.filename=/blah/blah >> >> Wouldn't it be smarter to assume "append" as default? Does anybody >> have an idea on how we could make "append" the default choice with a >> minimum of code mess? >> >> -- Mike >> >> Mike Schilli >> log...@pe... >> http://perlmeister.com >> http://log4perl.sourceforge.net > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > log4perl-devel mailing list > log...@li... > https://lists.sourceforge.net/lists/listinfo/log4perl-devel -- Happy Trails . . . Kevin M. Goess (and Anne and Frank) 904 Carmel Ave. Albany, CA 94706 (510) 525-5217 |