在asp.net中记录器概念面临的问题 [英] Problem facing in logger concept in asp.net

查看:80
本文介绍了在asp.net中记录器概念面临的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上在我的网页项目中,我使用记录器概念来保存用户操作。它正在工作,但我面临的问题是当用户A登录时意味着它正确地保存了他在数据库中的操作,但同时当另一个用户-B登录时意味着它通过保存用户重叠信息-B with User-A数据库中的详细信息。是否有任何解决方案





Actually in my web project i am using logger concept to save user operations. it is working but my where i am facing the problem is when a user-A is loggedin means it is saving properly his operations in database but at the same time when another user-B is logged in means it is overlaping the information by saving User-B with User-A Details in database. is there any solution


GlobalDiagnosticsContext.Set("PageViewed", "mInbox Page");
                GlobalDiagnosticsContext.Set("PageType", "Mob");
                GlobalDiagnosticsContext.Set("TimeStamp", DateTime.Now.ToString());
                GlobalDiagnosticsContext.Set("UserId", Session["UserID"].ToString());
                logger.Info("*** mInbox Page ***");

推荐答案

这篇关于在asp.net中记录器概念面临的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆