Ejemplo n.º 1
0
        public ActionResult Index()
        {
            var logger  = new AdministratorGlobalFactory().CreateLogger();
            var message = "报错信息:测试";

            logger.Log(UserInfo.Uid, message, RequestHelper.GetClientIp(), "location", "错误信息");
            return(new ContentResult {
                Content = "success"
            });
        }
Ejemplo n.º 2
0
        public static void Log(string message, string location = "", string summary = "服务器错误")
        {
            var logger = new AdministratorGlobalFactory().CreateLogger();

            logger.Log(UserInfo.Uid, message, RequestHelper.GetClientIp(), location, summary);
        }