You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
12 KiB
JavaScript

1 year ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[3723],{4391:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var t=r(5893),i=r(1151);const o={id:"audit",title:"5.4 \u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7",sidebar_label:"5.4 \u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7 (Audit)",description:"\u4efb\u4f55\u82cd\u8747\u90fd\u4e0d\u80fd\u653e\u8fc7"},s=void 0,c={id:"audit",title:"5.4 \u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7",description:"\u4efb\u4f55\u82cd\u8747\u90fd\u4e0d\u80fd\u653e\u8fc7",source:"@site/docs/audit.mdx",sourceDirName:".",slug:"/audit",permalink:"/docs/audit",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/audit.mdx",tags:[],version:"current",lastUpdatedBy:"MonkSoul",lastUpdatedAt:1682389320,formattedLastUpdatedAt:"Apr 25, 2023",frontMatter:{id:"audit",title:"5.4 \u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7",sidebar_label:"5.4 \u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7 (Audit)",description:"\u4efb\u4f55\u82cd\u8747\u90fd\u4e0d\u80fd\u653e\u8fc7"},sidebar:"docs",previous:{title:"5.3 \u7b5b\u9009\u5668/\u62e6\u622a\u5668/\u8fc7\u6ee4\u5668/AOP",permalink:"/docs/filter"},next:{title:"5.5 \u4e2d\u95f4\u4ef6 (Middleware)",permalink:"/docs/middleware"}},l={},d=[{value:"5.4.1 \u5ba1\u8ba1\u65e5\u5fd7",id:"541-\u5ba1\u8ba1\u65e5\u5fd7",level:2},{value:"5.4.2 \u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7",id:"542-\u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7",level:2},{value:"5.4.3 <code>LoggingMonitor</code> \u5ba1\u8ba1\u65e5\u5fd7",id:"543-loggingmonitor-\u5ba1\u8ba1\u65e5\u5fd7",level:2},{value:"5.4.4 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"544-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",li:"li",ol:"ol",p:"p",pre:"pre",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.admonition,{title:"\u5c0f\u77e5\u8bc6",type:"tip",children:(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"Furion"})," \u63d0\u4f9b\u4e86\u975e\u5e38\u5f3a\u5927\u7684 ",(0,t.jsx)(n.code,{children:"LoggingMonitor"})," \u5ba1\u8ba1\u65e5\u5fd7\u529f\u80fd\uff0c\u53ef\u76f4\u63a5\u4f7f\u7528\uff1a",(0,t.jsx)(n.a,{href:"/docs/logging#1811-loggingmonitor-%E7%9B%91%E5%90%AC%E6%97%A5%E5%BF%97",children:"LoggingMonitor \u6587\u6863"})]})}),"\n",(0,t.jsx)(n.h2,{id:"541-\u5ba1\u8ba1\u65e5\u5fd7",children:"5.4.1 \u5ba1\u8ba1\u65e5\u5fd7"}),"\n",(0,t.jsx)(n.p,{children:"\u5728\u4e00\u4e2a\u4f01\u4e1a\u5e94\u7528\u7cfb\u7edf\u4e2d\uff0c\u7528\u6237\u5bf9\u7cfb\u7edf\u6240\u6709\u7684\u64cd\u4f5c\u5305\u62ec\u8bf7\u6c42\u3001\u6570\u636e\u5e93\u64cd\u4f5c\u7b49\u7b49\u90fd\u5e94\u8be5\u8bb0\u5f55\u8d77\u6765\uff0c\u90a3\u4e48\u8fd9\u4e9b\u65e5\u5fd7\u6211\u4eec\u79f0\u4e3a\u64cd\u4f5c\u65e5\u5fd7\uff0c\u4e5f\u53ef\u4ee5\u8bf4\u5ba1\u8ba1\u65e5\u5fd7\u3002"}),"\n",(0,t.jsx)(n.admonition,{title:"\u5173\u4e8e\u6570\u636e\u5e93\u64cd\u4f5c\u5ba1\u8ba1\u65e5\u5fd7",type:"tip",children:(0,t.jsxs)(n.p,{children:["\u5982\u9700\u5b9e\u73b0 ",(0,t.jsx)(n.code,{children:"sql"})," \u64cd\u4f5c\uff0c",(0,t.jsx)(n.code,{children:"\u6570\u636e\u5e93\u64cd\u4f5c"})," \u7684\u5ba1\u8ba1\u65e5\u5fd7\u53ef\u67e5\u9605 \u3010",(0,t.jsx)(n.a,{href:"/docs/dbcontext-audit",children:"9.23 \u5ba1\u8ba1\u65e5\u5fd7\u7ae0\u8282"}),"\u3011"]})}),"\n",(0,t.jsx)(n.h2,{id:"542-\u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7",children:"5.4.2 \u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7"}),"\n",(0,t.jsx)(n.admonition,{title:"\u5b9e\u73b0\u539f\u7406",type:"note",children:(0,t.jsxs)(n.p,{children:["\u5728\u8fd9\u91cc\uff0c\u7ed3\u5408 \u3010",(0,t.jsx)(n.a,{href:"/docs/filter",children:"5.3 \u7b5b\u9009\u5668"}),"\u3011 \u5b9e\u73b0\u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7\u529f\u80fd\u3002"]})}),"\n",(0,t.jsxs)(n.p,{children:["\u8bf7\u6c42\u5ba1\u8ba1\u65e5\u5fd7\u901a\u5e38\u6307\u7684\u662f\u8bb0\u5f55\u8bf7\u6c42\u5730\u5740\uff0c\u6765\u6e90\u5730\u5740\uff0c\u64cd\u4f5c\u4eba\uff0c\u4f20\u9012\u53c2\u6570\u7b49\u3002\u8fd9\u4e2a\u4e3b\u8981\u662f\u901a\u8fc7 ",(0,t.jsx)(n.code,{children:"IAsyncActionFilter"})," \u7b5b\u9009\u