private static void LogListener_LogCreated(object sender, LogCreatedEventArgs e) { try { _dataContext.Logs.InsertOnSubmit(e.Log); _dataContext.SubmitChanges(); } catch (Exception ex) { string error = string.Empty; } }