From: Christopher J. B. <cjb...@al...> - 2004-09-01 17:10:26
|
hello, i have a perl program that loads and unloads modules (like plugins). the main program will init log4perl and then create its logger simply by calling get_logger(). a module is then dynamically loaded, a few methods are executed, then it is unloaded. when the module is loaded, it creates a logger for it self simply by calling get_logger() and programmatically attaching appenders. the problem is that when the module is unloaded, the logger is still there and after several loadings/unloadings, there are going to be many left over loggers and appenders sitting around in memory. is there a way i can delete a logger given its name? and also delete all appenders associated with it (given the appenders are not associated with other loggers that are in use)? thank you. |