public static RestFBLogger getLoggerInstance ( String logCategory ) { Object obj ; Class [ ] ctrTypes = new Class [ ] { String . class } ; Object [ ] ctrArgs = new Object [ ] { logCategory } ; try { Constructor loggerClassConstructor = usedLoggerClass . getConstructor ( ctrTypes ) ; obj = loggerClassConstructor . newInstance ( ctrArgs ) ; } catch ( Exception e ) { throw new FacebookLoggerException ( "cannot create logger: " + logCategory ) ; } return ( RestFBLogger ) obj ; }
returns the instance of the logger that belongs to the category .