Log Class

This type is an EasyAR Sense API in C#: Log . Some descriptions may not apply to Unity environment on this page.

Some parts of the Sense API may have already been wrapped into Unity components, and directly usages may not be necessary.

Description

Log class.

It is used to setup a custom log output function.


Methods

setLogFunc

C#

public static void setLogFunc(Action< LogLevel , string> func)

Sets custom log output function. The log output function should be thread-safe.

setLogFuncWithScheduler

C#

public static void setLogFuncWithScheduler( CallbackScheduler scheduler, Action< LogLevel , string> func)

Sets custom log output function and run it in scheduler.

resetLogFunc

C#

public static void resetLogFunc()

Clears custom log output function and reverts to default log output function.