OperateLoger

        protected void Page_Load(object sender, EventArgs e)
        {
            OperateLoger.FunctionInfo =new FunctionInfo { PageCode= "PageCode",ModuleName= "模块名称",PowerCode= "PowerCode",PowerName = "功能名称",OperateLogEnabled=true };//PermissionManager.GetFunctionInfo(functionCode: "GetCustomerInfo", pagecode: this.PageCode, powerName: "获取用户余额", pageTitle: this.PageTitle, creatNewIfNotExists: false);
            OperateLoger.InputMessage = "这里是输入信息";

            OperateLoger.OperationResult = OperationResult.Success; //这里是操作结果

            OperateLoger.OutputMessage = "这里是输出信息";
            OperateLoger.SaveLog();

            Response.Write("OK");
        }
时间: 2024-10-25 06:00:15

OperateLoger的相关文章

osharp3 操作日志之数据日志 控制增强

osharp3 原来的数据日志,有配置文件中有这总开关,DataLoggingEnabled,原来的程序是,这个总开关关了,就无法记录数据日志了,,如果开了,,他不管记录不记录数据日志,系统都会存数据改动日志到DataLogCache中 我在 DbContextBase中注入了一个操作记录员类 public IOperateLoger OperateLoger { get; set; } public class OperateLoger : IOperateLoger,IScopeDepend