static void Main(string[] args)
{
Proy27.LogTool.Log.Info("I am info");
Proy27.LogTool.Log.Debug("I am Debug");
Proy27.LogTool.Log.Error("I am Error");
dynamic user = new System.Dynamic.ExpandoObject();
user.Name = "許當麻測試";
user.Age = 21;
Proy27.LogTool.Log.Info(user);
var stopWatch = new Stopwatch();
stopWatch.Start();
Parallel.ForEach(Enumerable.Range(1, 1000).Select(i =>i*50), i =>
{
var res = SleepMSAndRetun(i);
Proy27.LogTool.Log.Info(res + " ");
Proy27.LogTool.Log.RepeatLine("=", 0);
Proy27.LogTool.Log.RepeatLine("當麻測試 Proy20.LogTool", 3);
Proy27.LogTool.Log.RepeatLine("目前耗時:" + stopWatch.Elapsed, 2);
Proy27.LogTool.Log.RepeatLine("已處理完:" + res, 1);
});
Proy27.LogTool.Log.NextLine();
}
result:
就簡單介紹一下,順帶一提他很驕傲的他有四千多的下載量呢
--
Before you read this, the article was in a superposition of human and AI. Upon observation, the wave function collapsed into a sleep-deprived developer.