From: <Msc...@ao...> - 2002-08-30 17:19:09
|
Hi Kevin and Dave, there seems to be a weird bug with Log::Log4perl and Log::Dispatch::File. The application I'm using it with produces a lot of multi-line DEBUG messages and in certain circumstances this will overwrite (!) previously written (!) sections of the log file. Looks like the file handle gets confused and suddenly jumps back. Using Log::Dispatch::Screen instead doesn't show the problem. Dave, is there any limitations to Log::Dispatch::File you can think of? My suspicion is that this is caused by our closures holding references to the Log::Dispatch::File object(s) which is/are using a "local"ized filehandle instead of a $fh scalar variable (open my $fh, ">blah") to keep track of the opened file. I don't have an easy-to-reproduce test case yet, just to give you guys a heads-up and maybe you already know where to look for? -- Mike Mike Schilli log...@pe... http://perlmeister.com http://log4perl.sourceforge.net |