/// <summary> /// 记录API请求日志 /// </summary> /// <param name="actionExecutedContext">请求上下文操作</param> /// <param name="result">请求返回值</param> private static void LoggerActionExecInfo(HttpActionExecutedContext actionExecutedContext, ResultModel <object> result) { var actionName = FilterUtils.GetActionFullName(actionExecutedContext); var args = FilterUtils.GetRequestArgsJson(actionExecutedContext); var info = $"调用接口: {actionName}{Environment.NewLine}调用参数: {args}{Environment.NewLine}返回值: {JsonEx.ToJson(result)}"; Logger.Info(info); }