public static void Main(string[] args)
        {
            //红黑树
            SortedDictionary <string, string> rbTree = new SortedDictionary <string, string>();

            DirectoryHold.ResetCurrentDir();
            NLogHelper.Info(GuidUtils.GetGuid32());
            NLogHelper.Trace("Trace");
            NLogHelper.Debug("Debug");
            NLogHelper.Info("Info");
            NLogHelper.Warn("Warn");
            NLogHelper.Error("Error");
            NLogHelper.Fatal("Fatal");
        }
Example #2
0
        public ActionResult Index()
        {
            Trace.WriteLine("一般信息");
            Trace.TraceInformation("告知性信息");
            Trace.TraceWarning("警告信息");
            Trace.TraceError("错误信息");
            // NLogHelper.Debug("log信息");
            NLogHelper.Trace("Trace Message");
            NLogHelper.Debug("Debug Message");
            NLogHelper.Info("Info Message");
            NLogHelper.Error("Error Message");
            NLogHelper.Fatal("Fatal Message");
            IQueryable <User> user = _userService.Select(c => true);

            return(View(user));
        }