|
|
@@ -89,15 +89,9 @@ namespace GamecraftModdingAPI.Utility |
|
|
|
/// <param name="extraData">The extra data to pass to the ILogger. |
|
|
|
/// This is automatically populated with "OuterException#" and "OuterStacktrace#" entries</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|
public static void LogException(Exception e, Dictionary<string, string> extraData = null) |
|
|
|
public static void LogException(Exception e, string msg = null, Dictionary<string, string> extraData = null) |
|
|
|
{ |
|
|
|
Svelto.Console.LogException(e, extraData); |
|
|
|
} |
|
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|
public static void LogException(string msg, Exception e, Dictionary<string, string> extraData = null) |
|
|
|
{ |
|
|
|
Svelto.Console.LogException(msg, e, extraData); |
|
|
|
Svelto.Console.LogException(e, msg, extraData); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -108,9 +102,9 @@ namespace GamecraftModdingAPI.Utility |
|
|
|
/// <param name="extraData">The extra data to pass to the ILogger. |
|
|
|
/// This is implemented similar to LogException(Exception e, Dictionary extraData)'s extraData</param> |
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|
public static void LogException(object obj, Exception e, Dictionary<string, string> extraData = null) |
|
|
|
public static void LogException(Exception e, object obj, Dictionary<string, string> extraData = null) |
|
|
|
{ |
|
|
|
Svelto.Console.LogException(obj.ToString(), e, extraData); |
|
|
|
Svelto.Console.LogException(e, obj.ToString(), extraData); |
|
|
|
} |
|
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|