Open 0x5143 opened 1 month ago
ZLogError
routes to UnityEngine.Debug.LogException
if an Exception is included, otherwise it routes to UnityEngine.Debug.LogError
.
https://github.com/Cysharp/ZLogger/blob/master/src/ZLogger.Unity/Assets/ZLogger.Unity/Runtime/ZLoggerUnityDebugLoggerProvider.cs#L116-L125
And it seems that UnityEngine.Debug.LogException
doesn't have a method that accepts a string message
, so it appears to be completely ignored.
I think a workaround would be to provide "Line 2 " + e.ToString()
instead of giving the Exception as is.
In unity 2022.3.20f1
Exception 1 ouput:
Exception 2 output:
Line 2‘s exception output is missing.