Table of Contents

Class ConcurrentLoggerBehaviour

Namespace
WitShells.MapView

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

int

showTimestamp

public bool showTimestamp

Field Value

bool

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

message string
type LogType