Example #1
0
        public void logSend(string mlog)
        {
            Log4netHelper.Error(this, mlog);
            LogModel lg = new LogModel();

            lg.SystemTime    = DateTools.TimeToDouble(DateTime.Now);
            lg.SatelliteTime = 0;
            lg.Source        = "webSystem";
            lg.Message       = mlog;
            msgSend.send <LogModel>("Log", lg);
        }
Example #2
0
        void logSend(string mlog)
        {
            LogModel lg = new LogModel();

            lg.SystemTime    = DateTools.TimeToDouble(DateTime.Now);
            lg.SatelliteTime = 0;
            lg.Source        = "webSystem";
            lg.Message       = mlog;
            msgSend.send <LogModel>("Log", lg);
            hubContext.Clients.All.SendAsync("RecivMessage", new { MsgType = "sys", MsgInfo = mlog, dateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") });
        }