public void Error(string message) { if (this.loggerHandle == IntPtr.Zero) { return; } NAdvLogNative.NAdvLog_Error(this.loggerHandle, message); }
public enumLogLevel GetLogLevel() { if (this.loggerHandle == IntPtr.Zero) { return(enumLogLevel.Off); } return(NAdvLogNative.NAdvLog_GetLogLevel(this.loggerHandle)); }
public void Log(LogType logType, string message) { if (this.loggerHandle == IntPtr.Zero) { return; } NAdvLogNative.NAdvLog_Log(this.loggerHandle, logType, message); }
public static bool Init() { int ret = NAdvLogNative.NAdvLog_Init(); if (ret == 0) { return(true); } else { return(false); } }
public static string GetLogFile() { string filePath = string.Empty; try { IntPtr ptr = NAdvLogNative.NAdvLog_GetLogFile(); filePath = Marshal.PtrToStringUni(ptr); } catch { } return(filePath); }
static void ReleaseLogger(IntPtr loggerPtr) { NAdvLogNative.NAdvLog_ReleaseLogger(loggerPtr); }
static IntPtr GetLogger(string name) { return(NAdvLogNative.NAdvLog_GetLoggerEx(name)); }
public static void SetLogFile(string logFile) { NAdvLogNative.NAdvLog_SetLogFile(logFile); }
public static void Uninit() { NAdvLogNative.NAdvLog_Uninit(); }