Exemple #1
0
        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);
            }
        }
Exemple #2
0
        public TextLogWindow()
        {
            InitializeComponent();

            TextLogger.RegisterReceiver(this);
        }