Commit d0c00e9
Add missing setters to
* Restore support for documented `Rfc5424Layout` attributes
In `2.21.0`, `Rfc5424Layout` was migrated from a factory method to the builder pattern. During this change, the recognized names of several configuration attributes unintentionally diverged from the documented ones.
As a result, some documented attributes were no longer recognized, while new, undocumented names were introduced.
This change restores support for the documented attribute names while continuing to accept the names introduced in `2.21.0` for backward compatibility.
Fixes #4022
Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
* Add missing setters to `Rfc5424LayoutBuilder`
This change introduces setter methods for the private fields added to `Rfc5424LayoutBuilder` in version `2.25.4`.
These fields were originally introduced to restore configuration options that existed in `2.20.0` but were unintentionally renamed in `2.21.0`. Due to semantic versioning constraints, setters were not added at that time.
With the `2.26.0` release, it is now appropriate to expose these fields via setters, restoring full configurability and improving API usability.
* fix: wrong reference in Javadoc
---------
Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>Rfc5424LayoutBuilder (#4076)1 parent 83702bb commit d0c00e9
4 files changed
Lines changed: 98 additions & 21 deletions
File tree
- log4j-core-test/src/test/java/org/apache/logging/log4j/core/layout
- log4j-core/src/main/java/org/apache/logging/log4j/core
- appender
- layout
- src/changelog/.2.x.x
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
| 750 | + | |
751 | 751 | | |
752 | | - | |
753 | | - | |
| 752 | + | |
| 753 | + | |
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
Lines changed: 78 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
755 | | - | |
| 754 | + | |
| 755 | + | |
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
762 | | - | |
763 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
| 766 | + | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
833 | 832 | | |
834 | 833 | | |
835 | 834 | | |
| |||
846 | 845 | | |
847 | 846 | | |
848 | 847 | | |
849 | | - | |
850 | 848 | | |
851 | 849 | | |
852 | 850 | | |
| |||
898 | 896 | | |
899 | 897 | | |
900 | 898 | | |
901 | | - | |
902 | 899 | | |
903 | 900 | | |
904 | 901 | | |
| |||
915 | 912 | | |
916 | 913 | | |
917 | 914 | | |
918 | | - | |
919 | 915 | | |
920 | 916 | | |
921 | 917 | | |
| |||
930 | 926 | | |
931 | 927 | | |
932 | 928 | | |
933 | | - | |
934 | 929 | | |
935 | 930 | | |
936 | 931 | | |
| |||
953 | 948 | | |
954 | 949 | | |
955 | 950 | | |
956 | | - | |
957 | 951 | | |
958 | 952 | | |
959 | 953 | | |
| |||
1002 | 996 | | |
1003 | 997 | | |
1004 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
1005 | 1003 | | |
1006 | 1004 | | |
1007 | 1005 | | |
1008 | 1006 | | |
1009 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1010 | 1020 | | |
1011 | 1021 | | |
1012 | 1022 | | |
1013 | 1023 | | |
1014 | 1024 | | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1015 | 1033 | | |
1016 | 1034 | | |
1017 | 1035 | | |
| |||
1037 | 1055 | | |
1038 | 1056 | | |
1039 | 1057 | | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
1040 | 1062 | | |
1041 | 1063 | | |
1042 | 1064 | | |
1043 | 1065 | | |
1044 | 1066 | | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1045 | 1079 | | |
1046 | 1080 | | |
1047 | 1081 | | |
1048 | 1082 | | |
1049 | 1083 | | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1050 | 1096 | | |
1051 | 1097 | | |
1052 | 1098 | | |
1053 | 1099 | | |
1054 | 1100 | | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1055 | 1109 | | |
1056 | 1110 | | |
1057 | 1111 | | |
| |||
1062 | 1116 | | |
1063 | 1117 | | |
1064 | 1118 | | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1065 | 1123 | | |
1066 | 1124 | | |
1067 | 1125 | | |
1068 | 1126 | | |
1069 | 1127 | | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1070 | 1136 | | |
1071 | 1137 | | |
1072 | 1138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments