Ejemplo n.º 1
0
 public static void LogSchedulingGroupError(this ILogger log, MicrosoftGraphException ex, WeekModel week, ShiftModel shift)
 {
     log.LogError(new EventId(11, "Scheduling Group"), ex, "Scheduling Group: Status={status}, ErrorCode={errorCode}, ErrorDescription={errorDescription}, ErrorRequestId={errorRequestId}, ErrorDate={errorDate}, DepartmentName={departmentName}, SourceId={sourceId}, EmployeeId={employeeId}, StoreId={storeId}, TeamId={teamId}, WeekDate={weekDate}", Status.Failed, ex.Error.Code, ex.Error.Message, ex.Error.InnerError?.RequestId, ex.Error.InnerError?.Date, shift.DepartmentName, shift.JdaShiftId, shift.JdaEmployeeId, week.StoreId, week.TeamId, week.StartDate.AsDateString());
 }
 public static void LogTimeOffError(this ILogger log, MicrosoftGraphException ex, TeamActivityModel activityModel, string operationName, TimeOffModel timeOff)
 {
     log.LogError(EventIds.TimeOff, ex, "TimeOff: Status={status}, OperationName={operationName}, ErrorCode={errorCode}, ErrorDescription={errorDescription}, ErrorRequestId={errorRequestId}, ErrorDate={errorDate}, SourceId={sourceId}, EmployeeId={employeeId}, TeamId={teamId}, Year={year}", Status.Failed, operationName, ex.Error.Code, ex.Error.Message, ex.Error.InnerError?.RequestId, ex.Error.InnerError?.Date, timeOff.WfmTimeOffId, timeOff.WfmEmployeeId, activityModel.TeamId, activityModel.DateValue);
 }
 public static void LogAvailabilityError(this ILogger log, MicrosoftGraphException ex, string teamId, string operationName, EmployeeAvailabilityModel availability)
 {
     log.LogError(EventIds.Availability, ex, "Availability: Status={status}, OperationName={operationName}, ErrorCode={errorCode}, ErrorDescription={errorDescription}, ErrorRequestId={errorRequestId}, ErrorDate={errorDate}, SourceId={sourceId}, EmployeeId={employeeId}, StartDate={startDate}, EndDate={endDate}, TeamId={teamId}", Status.Failed, operationName, ex.Error.Code, ex.Error.Message, ex.Error.InnerError?.RequestId, ex.Error.InnerError?.Date, availability.WfmId, availability.WfmEmployeeId, availability.StartDate.AsDateString(), availability.EndDate.AsDateString(), teamId);
 }
 public static void LogSchedulingGroupError(this ILogger log, MicrosoftGraphException ex, TeamActivityModel activityModel, ShiftModel shift)
 {
     log.LogError(EventIds.SchedulingGroup, ex, "Scheduling Group: Status={status}, ErrorCode={errorCode}, ErrorDescription={errorDescription}, ErrorRequestId={errorRequestId}, ErrorDate={errorDate}, DepartmentName={departmentName}, SourceId={sourceId}, EmployeeId={employeeId}, WfmBuId={wfmBuId}, TeamId={teamId}, WeekDate={weekDate}", Status.Failed, ex.Error.Code, ex.Error.Message, ex.Error.InnerError?.RequestId, ex.Error.InnerError?.Date, shift.DepartmentName, shift.WfmShiftId, shift.WfmEmployeeId, activityModel.WfmBuId, activityModel.TeamId, activityModel.DateValue);
 }