浏览代码

add logging

Luke Pulverenti 9 年之前
父节点
当前提交
e74160596d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      MediaBrowser.Server.Startup.Common/ApplicationHost.cs

+ 3 - 1
MediaBrowser.Server.Startup.Common/ApplicationHost.cs

@@ -335,6 +335,7 @@ namespace MediaBrowser.Server.Startup.Common
             foreach (var entryPoint in GetExports<IServerEntryPoint>().ToList())
             {
                 var name = entryPoint.GetType().FullName;
+                Logger.Info("Starting entry point {0}", name);
                 try
                 {
                     entryPoint.Run();
@@ -343,8 +344,9 @@ namespace MediaBrowser.Server.Startup.Common
                 {
                     Logger.ErrorException("Error in {0}", ex, name);
                 }
+                Logger.Info("Entry point completed: {0}", name);
             }
-            Logger.Info("Entry points complete");
+            Logger.Info("All entry points have started");
 
             LogManager.RemoveConsoleOutput();
         }