Class UnityLogOutput
Output logs into Unity's logging mechanism (Debug.unityLogger.Log)
Inherited Members
Namespace: Unity.Cloud.Common.Runtime
Syntax
public class UnityLogOutput : ILogOutput
Properties
CurrentLevel
The current LogLevel.
Declaration
public LogLevel CurrentLevel { get; set; }
Property Value
Type | Description |
---|---|
LogLevel |
Implements
Enabled
Whether logging is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
Methods
SetupUnityLogOutput()
Clears any previous ILogOutput from LogOutputs and adds the UnityLogOutput.
Declaration
public static void SetupUnityLogOutput()
SetupUnityLogOutputRuntime()
Set's up the UnityLogOutput at runtime.
Declaration
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
public static void SetupUnityLogOutputRuntime()
Remarks
Called automatically via RuntimeInitializeOnLoadMethodAttribute attribute with SubsystemRegistration
Write(LogEvent)
Writes a LogEvent.
Declaration
public void Write(LogEvent logEvent)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | logEvent | The event to log. |