C# Class KEngine.Log

KEngine Logger, file write + console output
Afficher le fichier Open project: mr-kelly/KEngine

Méthodes publiques

Свойство Type Description
IsUnityEditor bool
LogLevel LogLevel

Méthodes publiques

Méthode 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

Private Methods

Méthode 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

Method Details

AddLogCallback() public static méthode

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

Debug() public static méthode

public static Debug ( string log ) : void
log string
Résultat void

Error() public static méthode

public static Error ( string err ) : void
err string
Résultat void

GetLogPath() public static méthode

public static GetLogPath ( ) : string
Résultat string

GetTopStack() public static méthode

public static GetTopStack ( int stack = 2 ) : StackFrame
stack int
Résultat StackFrame

HasLogFile() public static méthode

public static HasLogFile ( ) : bool
Résultat bool

Info() public static méthode

public static Info ( string log ) : void
log string
Résultat void

LogConsole_MultiThread() public static méthode

public static LogConsole_MultiThread ( string log ) : void
log string
Résultat void

LogError() public static méthode

public static LogError ( string err ) : void
err string
Résultat void

LogErrorWithStack() public static méthode

public static LogErrorWithStack ( string err = "", int stack = 2 ) : void
err string
stack int
Résultat void

LogException() public static méthode

public static LogException ( Exception e ) : void
e Exception
Résultat void

LogFileCallbackHandler() public static méthode

public static LogFileCallbackHandler ( string condition, string stacktrace, LogLevel type ) : void
condition string
stacktrace string
type LogLevel
Résultat void

LogToFile() public static méthode

public static LogToFile ( string szMsg ) : void
szMsg string
Résultat void

LogToFile() public static méthode

public static LogToFile ( string szMsg, bool append ) : void
szMsg string
append bool
Résultat void

LogWarning() public static méthode

public static LogWarning ( string err ) : void
err string
Résultat void

Logs() public static méthode

public static Logs ( ) : void
Résultat void

RemoveLogCallback() public static méthode

public static RemoveLogCallback ( LogCallback callback ) : void
callback LogCallback
Résultat void

Trace() public static méthode

public static Trace ( string log ) : void
log string
Résultat void

Warning() public static méthode

public static Warning ( string err ) : void
err string
Résultat void

Property Details

IsUnityEditor public_oe static_oe property

public static bool IsUnityEditor
Résultat bool

LogLevel public_oe static_oe property

public static LogLevel LogLevel
Résultat LogLevel