Struct LogController.SinkStruct
Burst-friendly way to represent a sink
Implements
Inherited Members
Namespace: Unity.Logging
Assembly: solution.dll
Syntax
public struct LogController.SinkStruct : IDisposable
Fields
Name | Description |
---|---|
CaptureStackTracesBytes | If non-zero - it captures stacktraces |
Formatter | Formatter that is used with this sink |
LastTimestamp | Last timestamp that this sink processed. Sink will ignore all timestamps less/equal that this |
MinimalLevel | Minimal level that this sink is interested in |
OnAfterSink | Delegate called after the sink |
OnBeforeSink | Delegate called before the sink |
OnDispose | Delegate called on dispose of this sink |
OnLogMessageEmit | Delegate called on message emit for this sink |
OutputTemplate | Output template that this sink should use |
UserData | User data |
Properties
Name | Description |
---|---|
CaptureStackTraces | True if sink needs stacktraces |
IsCreated | True if the sink was created |
Methods
Name | Description |
---|---|
Dispose() | Dispose the sink |
GetUserData() | User's data attached |
IsInterestedIn(ref LogMessage) | Checks if the LogMessage's Timestamp and Level fits (see 'remarks') the sink. Updates sink's 'LastTimestamp' if method returns true. |
Process(ref LogMessage, ref FormatterStruct, ref UnsafeText, IntPtr, Allocator) | Processes the LogMessage. |