public static void Debug(string describe, bool isShow) { try { logger.Debug("[DEBUG] " + describe); if (GlobalModel.WriteLogHandler != null && isShow) { GlobalModel.WriteLogHandler("[DEBUG] " + describe); } } catch (Exception) { } }
public static void Error(string trace, string describe) { try { logger.Error("[ERROR](" + trace + ") " + describe); if (GlobalModel.WriteLogHandler != null && GlobalModel.IsShowLog) { GlobalModel.WriteLogHandler("[ERROR](" + trace + ") " + describe); } } catch (Exception) { } }
public static void Log(string describe) { try { logger.Debug(describe); if (GlobalModel.WriteLogHandler != null && GlobalModel.IsShowLog) { GlobalModel.WriteLogHandler(describe); } } catch (Exception) { } }