public static Logger getLogger ( final String name , final String resourceBundleName ) { WebContainerLogger tempLogger = map . get ( name ) ; if ( tempLogger == null ) { tempLogger = ( WebContainerLogger ) AccessController . doPrivileged ( new PrivilegedAction < WebContainerLogger > ( ) { public WebContainerLogger run ( ) { return new WebContainerLogger ( Logger . getLogger ( name , resourceBundleName ) , name , resourceBundleName ) ; } } ) ; map . put ( name , tempLogger ) ; } return tempLogger ; }
getLogger method will create an instance of WebContainerLogger with the appropriate Logger object