Class ConcurrentLoggerBehaviour
ConcurrentLoggerBehaviour receives log messages from any thread via the static Enqueue method and flushes them to the Unity Console inside Update on the main thread. It is created automatically on first use and marked DontDestroyOnLoad.
public class ConcurrentLoggerBehaviour : MonoSingleton<ConcurrentLoggerBehaviour>
- Inheritance
-
ConcurrentLoggerBehaviour
- Inherited Members
Fields
maxLogsPerFrame
public int maxLogsPerFrame
Field Value
showTimestamp
public bool showTimestamp
Field Value
Methods
Enqueue(string, LogType)
Enqueue a message to be logged on the main thread. Safe to call from any thread.
public static void Enqueue(string message, LogType type = null)
Parameters
messagestringtypeLogType