public static IRequestLogger getRequestLogger ( final WebApplication webApplication ) { IRequestLogger requestLogger ; if ( webApplication == null ) { requestLogger = ( ( WebApplication ) Application . get ( ) ) . getRequestLogger ( ) ; } else { requestLogger = webApplication . getRequestLogger ( ) ; } if ( requestLogger == null ) { requestLogger = new RequestLogger ( ) ; } return requestLogger ; }
Gets the request logger from the given WebApplication .