Property | Type | Description | |
---|---|---|---|
IsUnityEditor | bool | ||
LogLevel | LogLevel |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 |
public static AddLogCallback ( LogCallback callback ) : void | ||
callback | LogCallback | |
return | void |
public static GetTopStack ( int stack = 2 ) : StackFrame | ||
stack | int | |
return | StackFrame |
public static LogConsole_MultiThread ( string log ) : void | ||
log | string | |
return | void |
public static LogErrorWithStack ( string err = "", int stack = 2 ) : void | ||
err | string | |
stack | int | |
return | void |
public static LogException ( Exception e ) : void | ||
e | Exception | |
return | void |
public static LogFileCallbackHandler ( string condition, string stacktrace, LogLevel type ) : void | ||
condition | string | |
stacktrace | string | |
type | LogLevel | |
return | void |
public static LogToFile ( string szMsg ) : void | ||
szMsg | string | |
return | void |
public static LogToFile ( string szMsg, bool append ) : void | ||
szMsg | string | |
append | bool | |
return | void |
public static LogWarning ( string err ) : void | ||
err | string | |
return | void |
public static RemoveLogCallback ( LogCallback callback ) : void | ||
callback | LogCallback | |
return | void |