Class UnityLogOutput
Output logs into Unity's logging mechanism (Debug.unityLogger.Log)
Implements
Inherited Members
Namespace: Unity.Cloud.Common.Runtime
Assembly: Unity.Cloud.Common.Runtime.dll
Syntax
public class UnityLogOutput : ILogOutput
Properties
CurrentLevel
The current LogLevel.
Declaration
public LogLevel CurrentLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| LogLevel |
Enabled
Whether logging is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
SetupUnityLogOutput()
Clears any previous ILogOutput from LogOutputs and adds the UnityLogOutput.
Declaration
[InitializeOnLoadMethod]
public static void SetupUnityLogOutput()
Remarks
Called automatically via InitializeOnLoadMethod attribute.
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. |