Struct LoggerHandle
Structure that contains unique identifier of Logger
Inherited Members
Namespace: Unity.Logging
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 |
---|---|
UInt32 |
Properties
IsValid
True if Value is not 0.
Declaration
public readonly bool IsValid { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
CreateUsingKnownId(UInt32)
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 |
---|---|---|
UInt32 | 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 readonly void MustBeValid()
Exceptions
Type | Condition |
---|---|
Exception | throws if this LoggerHandle is not valid |