/// <summary> /// Create a log sink. By default it is not registered to received log. Use TfInboke.AddLogSink to register it. /// </summary> /// <param name="autoRegisterLogSink">If true, it will register the LogSink right after it is created, and will de-register the LogSink right before it is disposed.</param> public LogListenerSink(bool autoRegisterLogSink = false) { _ptr = TfInvoke.tfeLogListenerSinkCreate(ref _logSinkPtr); if (autoRegisterLogSink) { TfInvoke.AddLogSink(this); } _autoRemoveLogSink = autoRegisterLogSink; }