public void StoreActivity(ActivityLogEntry entry) { if (null == _tblActivityLogTable) { return; } _tblActivityLogTable.Add(entry); }
public void StoreActivity(ActivityLogEntry entry) { try { File.AppendAllLines(LogFileName, new string[] { entry.ToString() }); if (null != Database) { Database.StoreActivity(entry); } } catch (Exception ex) { logger.Error(ex, "Error while storing activity ({1}): {0}", ex.Message, entry.ToString()); } }