Skip to content
SiteEmail

cohtml.CohtmlLogHandler

Handle logs coming from the Native Cohtml Plugin.

Inherits from cohtml.Net.LogHandler, SystemIDisposable

Name
virtual override voidWriteLog(LogInfo info, string message, ulong length)
Logs a message using the configured LogWriter instance.
virtual override voidDispose()
Dispose the LogHandler when destruct the Cohtml library.
Name
CohtmlLogHandlerInstance
Returns a Singleton instance of the CohtmlLogHandler.

Public Functions inherited from cohtml.Net.LogHandler

Name
LogHandler()
delegate voidSwigDelegateLogHandler_0(global.System.IntPtr info, string message, ulong length, global.System.IntPtr swigId)

Protected Attributes inherited from cohtml.Net.LogHandler

Name
boolswigCMemOwn
virtual override void WriteLog(
LogInfo info,
string message,
ulong length
)

Logs a message using the configured LogWriter instance.

Parameters:

  • info Specifies the metadata associated with the message.
  • message The message generated by the Cohtml library.
  • length The length of the message string.

Reimplements: cohtml.Net.LogHandler.WriteLog

virtual override void Dispose()

Dispose the LogHandler when destruct the Cohtml library.

Reimplements: cohtml.Net.LogHandler.Dispose

static CohtmlLogHandler Instance;

Returns a Singleton instance of the CohtmlLogHandler.