Class StringSink
String sink class
Inherited Members
Namespace: Unity.Logging.Sinks
Syntax
[BurstCompile]
public class StringSink : SinkSystemBase, IDisposable
Methods
AssertNoSinks()
Debug assertion that makes sure there is no StringSinks
Declaration
public static void AssertNoSinks()
Dispose()
Dispose the sink
Declaration
public override void Dispose()
Overrides
GetString()
Get everything that was written as a string
Declaration
public string GetString()
Returns
Type | Description |
---|---|
String | String with all output in the sink |
Initialize(Logger, SinkConfiguration)
Initialization of the sink using Logger and SinkConfiguration of this Sink
Declaration
public override void Initialize(Logger logger, SinkConfiguration systemConfig)
Parameters
Type | Name | Description |
---|---|---|
Logger | logger | Logger that owns the sink |
SinkConfiguration | systemConfig | Configuration |
Overrides
ToSinkStruct()
Creates LogController.SinkStruct
Declaration
public override LogController.SinkStruct ToSinkStruct()
Returns
Type | Description |
---|---|
LogController.SinkStruct | SinkStruct |