deallocating resources

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

deallocating resources


Every time we create a logger "instance" it allocates resources, such as:
    LoggerPtr logger1 = Logger::getLogger("aaa");
    LoggerPtr logger2 = Logger::getLogger("");
    LoggerPtr logger3 = Logger::getLogger("bbb.yyy");

Obviously, the pointer destructors won't release the logger. But is there a way to deallocate resources for a particular logger?
Something like Logger::releaseLogger("aaa"), which would release logger "aaa" or even Logger::releaseLogger("bbb"), which would release the loggers "" and "bbb.yyy"?

Joao Antunes