cohtml.CohtmlLogHandler

Handle logs coming from the Native Cohtml Plugin.

Inherits from cohtml.Net.LogHandler, SystemIDisposable

Public Functions

Name
virtual override voidWriteLog(Severity severity, string message, ulong length)
Logs a message using the configured LogWriter instance.
virtual override voidDispose()
Dispose the LogHandler when destruct the Cohtml library.

Public Properties

Name
CohtmlLogHandlerInstance
Returns a Singleton instance of the CohtmlLogHandler.

Additional inherited members

Public Functions inherited from cohtml.Net.LogHandler

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

Protected Attributes inherited from cohtml.Net.LogHandler

Name
boolswigCMemOwn

Public Functions Documentation

function WriteLog

virtual override void WriteLog(
    Severity severity,
    string message,
    ulong length
)

Logs a message using the configured LogWriter instance.

Parameters:

  • severity Specifies the severity level of the message.
  • message The message generated by the Cohtml library.
  • length The length of the message string.

Reimplements: cohtml.Net.LogHandler.WriteLog

function Dispose

virtual override void Dispose()

Dispose the LogHandler when destruct the Cohtml library.

Reimplements: cohtml.Net.LogHandler.Dispose

Public Property Documentation

property Instance

static CohtmlLogHandler Instance;

Returns a Singleton instance of the CohtmlLogHandler.