deallocating resources

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

deallocating resources

jasantunes
Hi!

Every time we create a logger "instance" it allocates resources, such as:
    LoggerPtr logger1 = Logger::getLogger("aaa");
    LoggerPtr logger2 = Logger::getLogger("bbb.xxx");
    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 "bbb.xxx" and "bbb.yyy"?

Thanks
Joao Antunes
Loading...