Closed justinlm closed 4 years ago
ZLogger creates log entry cache. That cache will be reused when the log is flushed. Therefore, the allocate is occured when first run. Also, if you're using AddZLoggerUnityDebug, it's finnaly handled by UnityEngine.Debug.Log. It takes extra processing than the plain Debug.Log.
Thank you for your answer. Yes, I am using AddZLoggerUnityDebug. em.... As you say, it takes extra processing than the plain Debug.Log. Is this means that I'd better not use ZLogger to log to unity's console?
If you don't use any of ZLogger's additional features, then yes. For example, filtering at the log level for development and production, categorization, etc...
Thank you so much for your reply and advice。
Hello, I compare ZLogger with Unity Debug.Log in Unity Profile . And I get a result like this
Here is my test code:
Are my results wrong? I am confused.