public void InsertFatalMessage(FatalMessage message) { long appid = CheckAppId(message.OriginIdentity.ToLower()); var tb = new Log(); var newId = tb.Insert(new { Date = message.Date, AppIdentity = appid, Module = message.ModuleName, Level = "FATAL", Message = message.Message, Exception = message.Exception.ToString() }); }
public void InsertDebugMessage(DebugMessage message) { long appid = CheckAppId(message.OriginIdentity.ToLower()); var tb = new Log(); var newId = tb.Insert(new { Date = message.Date, AppIdentity = appid, Module = message.ModuleName, Level = "DEBUG", Message = message.Message, Exception = message.Stacktrace }); }
public void InsertInfoMessage(InfoMessage message) { long appid = CheckAppId(message.OriginIdentity.ToLower()); var tb = new Log(); var newId = tb.Insert(new { Date=DateTime.Now, AppIdentity=appid, Module=message.ModuleName, Level="INFO", Message=message.Message, Exception=string.Empty }); }
public void InsertHitMessage(HitMessage message) { long appid = CheckAppId(message.OriginIdentity.ToLower()); var tb = new Log(); var newId = tb.Insert(new { Date = message.DateofHit, AppIdentity = appid, Module = message.ModuleName, Level = "HIT", Message = "Hit by user:"******"|Message:"+message.Message, Exception = string.Empty }); }