ShortDateFormat is no longer available in newer Delphi versions. To fix the compiler errror:
change line 2211 in Log4D.pas to
SetOption(DateFormatOpt,
{$IFDEF DELPHIXE_UP}FormatSettings.{$ENDIF}ShortDateFormat);
or (with Free Pascal support):
procedure TLogCustomLayout.Init;
begin
inherited Init;
SetOption(DateFormatOpt,
{$IFDEF DELPHIXE_UP}FormatSettings.{$ENDIF}
{$IFDEF FPC}FormatSettings.{$ENDIF}
ShortDateFormat);
end;
I would consider changing the name of the IFDEF variable to the feature instead of the version, and set the versions that support that feature in the .inc file: