private void dump(MethodInvocation methodInvocation, Object result, long take) {
        // 取得日志打印对象
        Logger log = getLogger(methodInvocation.getMethod().getDeclaringClass());
        Object[] args = methodInvocation.getArguments();
        StringBuffer buffer = getArgsString(args);

        if (log.isInfoEnabled()) {
            String className = ClassUtils.getShortClassName(methodInvocation.getMethod().getDeclaringClass());
            String methodName = methodInvocation.getMethod().getName();
            String resultStr = getResultString(result);

            String now = new SimpleDateFormat(DATA_FORMAT).format(new Date());
            log.info(MessageFormat.format(MESSAGE, new Object[] { className, methodName, now, take, buffer.toString(),
                    resultStr }));
        }
    }
private void dump ( MethodInvocation methodInvocation , Object result , long take ) { Logger log = getLogger ( methodInvocation . getMethod ( ) . getDeclaringClass ( ) ) ; Object [ ] args = methodInvocation . getArguments ( ) ; StringBuffer buffer = getArgsString ( args ) ; if ( log . isInfoEnabled ( ) ) { String className = ClassUtils . getShortClassName ( methodInvocation . getMethod ( ) . getDeclaringClass ( ) ) ; String methodName = methodInvocation . getMethod ( ) . getName ( ) ; String resultStr = getResultString ( result ) ; String now = new SimpleDateFormat ( DATA_FORMAT ) . format ( new Date ( ) ) ; log . info ( MessageFormat . format ( MESSAGE , new Object [ ] { className , methodName , now , take , buffer . toString ( ) , resultStr } ) ) ; } }
记录请求信息

@param methodInvocation
@param take