Hello everyone,
In our project, we use Application.logMessageReceived to capture log messages.
Application.logMessageReceived += LogHandler;
I thought if I invoke Debug.Log(“inside message”) inside LogHandler, the handler itself would be invoked again and a recursion issue would happen. But everything works fine except the “inside message” is missing in the console.
Here are my questions:
- Is there any protection for Application.logMessageReceived in UnityEngine?
- Why the “inside message” is missing in the console?
- Is it guaranteed that invoking Debug.Log, Debug.LogWarning and other log methods doesn’t cause any recursion issue?
Thank you.