C# 클래스 KEngine.Log

KEngine Logger, file write + console output
파일 보기 프로젝트 열기: mr-kelly/KEngine

공개 프로퍼티들

프로퍼티 타입 설명
IsUnityEditor bool
LogLevel LogLevel

공개 메소드들

메소드 설명
AddLogCallback ( LogCallback callback ) : void

第一次使用时注册,之所以不放到静态构造器,因为多线程问题

Debug ( string log ) : void
Error ( string err ) : void
GetLogPath ( ) : string
GetTopStack ( int stack = 2 ) : StackFrame
HasLogFile ( ) : bool
Info ( string log ) : void
LogConsole_MultiThread ( string log ) : void
LogError ( string err ) : void
LogErrorWithStack ( string err = "", int stack = 2 ) : void
LogException ( Exception e ) : void
LogFileCallbackHandler ( string condition, string stacktrace, LogLevel type ) : void
LogToFile ( string szMsg ) : void
LogToFile ( string szMsg, bool append ) : void
LogWarning ( string err ) : void
Logs ( ) : void
RemoveLogCallback ( LogCallback callback ) : void
Trace ( string log ) : void
Warning ( string err ) : void

비공개 메소드들

메소드 설명
Assert ( System.Int64 result ) : void
Assert ( bool result ) : void
Assert ( int result ) : void
Assert ( object obj ) : void
Check ( object obj, string formatStr = null ) : bool
DoLog ( string szMsg, object args, LogLevel emLevel ) : void
GetUnityLogCallback ( LogCallback callback ) : Application.LogCallback
Log ( ) : UnityEngine
OnLogCallback ( string condition, string stacktrace, LogLevel type ) : void

메소드 상세

AddLogCallback() 공개 정적인 메소드

第一次使用时注册,之所以不放到静态构造器,因为多线程问题
public static AddLogCallback ( LogCallback callback ) : void
callback LogCallback
리턴 void

Debug() 공개 정적인 메소드

public static Debug ( string log ) : void
log string
리턴 void

Error() 공개 정적인 메소드

public static Error ( string err ) : void
err string
리턴 void

GetLogPath() 공개 정적인 메소드

public static GetLogPath ( ) : string
리턴 string

GetTopStack() 공개 정적인 메소드

public static GetTopStack ( int stack = 2 ) : StackFrame
stack int
리턴 StackFrame

HasLogFile() 공개 정적인 메소드

public static HasLogFile ( ) : bool
리턴 bool

Info() 공개 정적인 메소드

public static Info ( string log ) : void
log string
리턴 void

LogConsole_MultiThread() 공개 정적인 메소드

public static LogConsole_MultiThread ( string log ) : void
log string
리턴 void

LogError() 공개 정적인 메소드

public static LogError ( string err ) : void
err string
리턴 void

LogErrorWithStack() 공개 정적인 메소드

public static LogErrorWithStack ( string err = "", int stack = 2 ) : void
err string
stack int
리턴 void

LogException() 공개 정적인 메소드

public static LogException ( Exception e ) : void
e Exception
리턴 void

LogFileCallbackHandler() 공개 정적인 메소드

public static LogFileCallbackHandler ( string condition, string stacktrace, LogLevel type ) : void
condition string
stacktrace string
type LogLevel
리턴 void

LogToFile() 공개 정적인 메소드

public static LogToFile ( string szMsg ) : void
szMsg string
리턴 void

LogToFile() 공개 정적인 메소드

public static LogToFile ( string szMsg, bool append ) : void
szMsg string
append bool
리턴 void

LogWarning() 공개 정적인 메소드

public static LogWarning ( string err ) : void
err string
리턴 void

Logs() 공개 정적인 메소드

public static Logs ( ) : void
리턴 void

RemoveLogCallback() 공개 정적인 메소드

public static RemoveLogCallback ( LogCallback callback ) : void
callback LogCallback
리턴 void

Trace() 공개 정적인 메소드

public static Trace ( string log ) : void
log string
리턴 void

Warning() 공개 정적인 메소드

public static Warning ( string err ) : void
err string
리턴 void

프로퍼티 상세

IsUnityEditor 공개적으로 정적으로 프로퍼티

public static bool IsUnityEditor
리턴 bool

LogLevel 공개적으로 정적으로 프로퍼티

public static LogLevel LogLevel
리턴 LogLevel