示例#1
0
文件: LogManager.cs 项目: Adel-dz/Hub
 public void LogUserActivity(string txt)
 {
     lock (m_sysLogger)
     {
         IEventLog log = m_sysLogger.LogEvent(txt, DateTime.Now, EventType_t.Activity);
         SysLogAdded?.Invoke(log);
     }
 }
示例#2
0
文件: LogManager.cs 项目: Adel-dz/Hub
        public void LogSysError(string txt, bool showToUser = false)
        {
            lock (m_sysLogger)
            {
                IEventLog log = m_sysLogger.LogEvent(txt, DateTime.Now, EventType_t.Error);
                SysLogAdded?.Invoke(log);
            }

            if (showToUser)
            {
                TextLogger.Error(txt);
            }
        }