Table of Contents

Class Log

네임스페이스
easyar

로그 클래스.
로그를 출력하거나 사용자 정의 로그 출력 함수를 설정하는 데 사용됩니다.

Log

메서드

logMessage

출력 로그.

void easyar_Log_logMessage(easyar_LogLevel level, easyar_String * message)
static void logMessage(LogLevel level, std::string message)
public static void logMessage(int level, java.lang.@Nonnull String message)
companion object fun logMessage(level: Int, message: String): Unit
+ (void)logMessage:(easyar_LogLevel)level message:(NSString *)message
public static func logMessage(_ level: LogLevel, _ message: String) -> Void
public static void logMessage(LogLevel level, string message)

매개 변수

이름 형식 설명
level LogLevel
message String

반환 값

형식 설명
Void

setLogFunc

사용자 정의 로그 출력 함수 설정. 이 로그 출력 함수는 스레드 안전성을 보장해야 함.

void easyar_Log_setLogFunc(easyar_FunctorOfVoidFromLogLevelAndString func)
static void setLogFunc(std::function<void(LogLevel, std::string)> func)
public static void setLogFunc(@Nonnull FunctorOfVoidFromLogLevelAndString func)
companion object fun setLogFunc(func: FunctorOfVoidFromLogLevelAndString): Unit
+ (void)setLogFunc:(void (^)(easyar_LogLevel level, NSString * message))func
public static func setLogFunc(_ `func`: @escaping (LogLevel, String) -> Void) -> Void
public static void setLogFunc(Action<LogLevel, string> func)

매개 변수

이름 형식 설명
func Action<,>

반환 값

형식 설명
Void

setLogFuncWithScheduler

사용자 정의 로그 출력 함수를 설정하고 scheduler를 통해 실행 시점을 지정합니다.

void easyar_Log_setLogFuncWithScheduler(easyar_CallbackScheduler * scheduler, easyar_FunctorOfVoidFromLogLevelAndString func)
static void setLogFuncWithScheduler(std::shared_ptr<CallbackScheduler> scheduler, std::function<void(LogLevel, std::string)> func)
public static void setLogFuncWithScheduler(@Nonnull CallbackScheduler scheduler, @Nonnull FunctorOfVoidFromLogLevelAndString func)
companion object fun setLogFuncWithScheduler(scheduler: CallbackScheduler, func: FunctorOfVoidFromLogLevelAndString): Unit
+ (void)setLogFuncWithScheduler:(easyar_CallbackScheduler *)scheduler func:(void (^)(easyar_LogLevel level, NSString * message))func
public static func setLogFuncWithScheduler(_ scheduler: CallbackScheduler, _ `func`: @escaping (LogLevel, String) -> Void) -> Void
public static void setLogFuncWithScheduler(CallbackScheduler scheduler, Action<LogLevel, string> func)

매개 변수

이름 형식 설명
scheduler CallbackScheduler
func Action<,>

반환 값

형식 설명
Void

resetLogFunc

사용자 정의 로그 출력 함수를 제거하고 기본 로그 출력 함수로 복원합니다.

void easyar_Log_resetLogFunc(void)
static void resetLogFunc()
public static void resetLogFunc()
companion object fun resetLogFunc(): Unit
+ (void)resetLogFunc
public static func resetLogFunc() -> Void
public static void resetLogFunc()

반환 값

형식 설명
Void