Browse Source

添加日志写文件功能

yuzhengyang 9 years ago
parent
commit
3959f652fa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Fork.Net/Y.Utils.Net20/LogUtils/Log.cs

+ 1 - 0
Fork.Net/Y.Utils.Net20/LogUtils/Log.cs

@@ -72,6 +72,7 @@ namespace Y.Utils.Net20.LogUtils
         {
             Console.ForegroundColor = GetColor(type);
             Console.WriteLine(LogFormat, DateTime.Now.ToString(TimeFormat), type.ToString(), message);
+            WriteFile(type, message);
         }