cohtml.LogHandler

A class implementing the cohtml.Net.ILogHandler interface. Responsible for handling logs coming from the Native Cohtml Plugin and the integration code.

Inherits from cohtml.Net.ILogHandler, SystemIDisposable

Public Functions

Name
voidLog(string message)
Logs the provided message in Unity3D’s console.
voidLogWarning(string message)
Logs the provided message as a warning in Unity3D’s console.
voidLogError(string message)
Logs the provided message as an error in Unity3D’s console.
virtual override voidWriteLog(Severity severity, string message, ulong length)
Invoked by Cothml and outputs the message in Unity3D’s console.
virtual override voidDispose()
voidWriteLog(Severity severity, string message)
Logs the provided message with the given severity in Unity3D’s console.

Public Properties

Name
ILogWriterWriter
Gets a Singleton instance of the ILogWriter. Sets this instance to a value.
LogHandlerInstance
Returns a Singleton instance of the LogHandler.

Additional inherited members

Public Functions inherited from cohtml.Net.ILogHandler

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

Protected Attributes inherited from cohtml.Net.ILogHandler

Name
boolswigCMemOwn

Public Functions Documentation

function Log

static void Log(
    string message
)

Logs the provided message in Unity3D’s console.

function LogWarning

static void LogWarning(
    string message
)

Logs the provided message as a warning in Unity3D’s console.

function LogError

static void LogError(
    string message
)

Logs the provided message as an error in Unity3D’s console.

function WriteLog

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

Invoked by Cothml and outputs the message in Unity3D’s console.

Reimplements: cohtml.Net.ILogHandler.WriteLog

function Dispose

virtual override void Dispose()

Reimplements: cohtml.Net.ILogHandler.Dispose

function WriteLog

void WriteLog(
    Severity severity,
    string message
)

Logs the provided message with the given severity in Unity3D’s console.

Public Property Documentation

property Writer

static ILogWriter Writer;

Gets a Singleton instance of the ILogWriter. Sets this instance to a value.

property Instance

static LogHandler Instance;

Returns a Singleton instance of the LogHandler.