<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><p class="">I saw the loggerCache in class  LoggerContext is a ConcurrentHashMap,  how to free the instance in it.</p></div></div></blockquote>There doesn’t seem to be a way to clear the cache.  Normally this is not a problem as there is a finite, and small, number of loggers in any application.</div><div><br class=""></div><div>What are you trying to do?  And why?</div><div><br class=""></div><div>You could suggest a change to logback. Or you could use an ugly reflection hack.  You can change the loggerCache field to public via reflection, then you can get it and clear the entries.  But bewarned this could easily cause problems if you upgrade logback later and don’t test properly.</div><div><br class=""></div><div>--</div><div>David</div><br class=""></body></html>