Struct LoggerHandle
Structure that contains unique identifier of Logger
Inherited Members
Namespace: Unity.Logging
Assembly: Unity.Logging.dll
Syntax
public readonly struct LoggerHandle
Fields
Value
Unique id of Logger. Valid value is not 0.
Declaration
public readonly uint Value
Field Value
| Type | Description |
|---|---|
| uint |
Properties
IsValid
True if Value is not 0.
Declaration
public bool IsValid { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CreateUsingKnownId(uint)
Method to create a LoggerHandle from a long. Use this method only if you cannot use LoggerHandle for some reason and must use the long
Declaration
public static LoggerHandle CreateUsingKnownId(uint knownId)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | knownId | Id that was taken from some LoggerHandle.Value, don't pass other longs |
Returns
| Type | Description |
|---|---|
| LoggerHandle | LoggerHandle that uses the id that was provided. |
MustBeValid()
Throws if this LoggerHandle is not valid. IsValid
Declaration
public void MustBeValid()
Exceptions
| Type | Condition |
|---|---|
| Exception | throws if this LoggerHandle is not valid |