Explorar o código

Added an overload for LogException to not have to pass in a message

LukePulverenti Luke Pulverenti luke pulverenti %!s(int64=13) %!d(string=hai) anos
pai
achega
25b248eb7f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      MediaBrowser.Common/Logging/Logger.cs

+ 5 - 0
MediaBrowser.Common/Logging/Logger.cs

@@ -21,6 +21,11 @@ namespace MediaBrowser.Common.Logging
             LoggerInstance.LogError(message, paramList);
         }
 
+        public static void LogException(Exception ex, params object[] paramList)
+        {
+            LogException(string.Empty, ex, paramList);
+        }
+
         public static void LogException(string message, Exception ex, params object[] paramList)
         {
             LoggerInstance.LogException(message, ex, paramList);