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 | |
---|---|
void | Log(string message) Logs the provided message in Unity3D’s console. |
void | LogWarning(string message) Logs the provided message as a warning in Unity3D’s console. |
void | LogError(string message) Logs the provided message as an error in Unity3D’s console. |
virtual override void | WriteLog(Severity severity, string message, ulong length) Invoked by Cothml and outputs the message in Unity3D’s console. |
virtual override void | Dispose() |
void | WriteLog(Severity severity, string message) Logs the provided message with the given severity in Unity3D’s console. |
Public Properties
Name | |
---|---|
ILogWriter | Writer Gets a Singleton instance of the ILogWriter. Sets this instance to a value. |
LogHandler | Instance Returns a Singleton instance of the LogHandler. |
Additional inherited members
Public Functions inherited from cohtml.Net.ILogHandler
Name | |
---|---|
ILogHandler() | |
delegate void | SwigDelegateILogHandler_0(int severity, string message, ulong length, global.System.IntPtr swigId) |
Protected Attributes inherited from cohtml.Net.ILogHandler
Name | |
---|---|
bool | swigCMemOwn |
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.