Example #1
0
        public void System_Write(LogInfo log)
        {
            DB_SystemLog dbLog = new DB_SystemLog()
            {
                Time    = DateTime.UtcNow,
                State   = log.State,
                Message = log.Message,
            };

            DB.Insert(dbLog);

            // Fire Event
            SystemLogUpdated?.Invoke(this, new SystemLogUpdateEventArgs(dbLog));
        }
Example #2
0
        public void System_Write(string message)
        {
            DB_SystemLog dbLog = new DB_SystemLog()
            {
                Time    = DateTime.UtcNow,
                State   = LogState.None,
                Message = message,
            };

            DB.Insert(dbLog);

            // Fire Event
            SystemLogUpdated?.Invoke(this, new SystemLogUpdateEventArgs(dbLog));
        }