From: Kevin G. <ke...@go...> - 2003-09-25 00:05:22
|
William, if I'm understanding you correctly, you're calling Log4perl's init() function inside a subroutine, and calling it repeatedly? Log4perl works from singleton objects that are global to the entire interpreter (package globals), so each perl interpreter only needs to call init() once in its lifetime. Subsequent calls to get_logger('somecategory') retrieve the same loggers from the hoard of singletons. Does that make sense? William McKee wrote: > Hi Mike, > > Thanks for the prompt reply! Indeed inserting the reset worked. > > I discovered that the behavior occurs each time I ran my subroutine, not > just when Apache::Reload got called. Given your explanation, this > behavior makes sense because I am calling init each time it is run. > > So the init function currently creates a new logger object, and I'm > basically firing off new ones every time my script runs. It's like a > giant fireworks show (which is also what my logs start to look like > after several runs <g>). > > Regards, > William > -- Happy Trails . . . Kevin M. Goess (and Anne and Frank) 904 Carmel Ave. Albany, CA 94706 (510) 525-5217 |