How to remove Logger?
slf4j internally stores each recorded log. When using the application with a long service life, registrars accumulate in slf4j over time. Currently ( v1.7.7 ), using getLogger via slf4j-api , a simple factory logger or log4j factory also saves a new instance in the hash map. But these log objects are not deleted.
(Note that this is not a real logging structure, but a slf4j binding.)
source share