Skip to content

Commit fe3bf7c

Browse files
PoeppingTPoeppingT
andauthored
Upgrade aws-lambda-java-log4j2 to 1.5.0 to upgrade log4j2 to 2.17.0 (awslabs#166)
* upgrade aws-lambda-java-log4j2 to 1.5.0 to upgrade log4j2 to 2.17.0 * apply logging standardization across all connected modules * Upgrade log4j2 to 2.17.1 and aws-lambda-java-log4j to 1.5.1 * exclude log4j-core and api from lambda logging, use from log4j-slf4j-impl * Remove explicit log4j-slf4j-impl from custom-resources * Move log4j-slf4j-impl to layers parent and mark as provided to avoid class conflict Co-authored-by: PoeppingT <poeppt@amazon.com>
1 parent 8241dee commit fe3bf7c

File tree

26 files changed

+34
-154
lines changed

26 files changed

+34
-154
lines changed

functions/alb-update/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ limitations under the License.
114114
<dependency>
115115
<groupId>com.amazonaws</groupId>
116116
<artifactId>aws-lambda-java-log4j2</artifactId>
117-
<version>1.4.0</version>
118-
</dependency>
119-
<dependency>
120-
<groupId>org.apache.logging.log4j</groupId>
121-
<artifactId>log4j-slf4j-impl</artifactId>
122-
<version>2.16.0</version>
123117
</dependency>
124118
<dependency>
125119
<groupId>software.amazon.awssdk</groupId>

functions/ecs-deploy/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ limitations under the License.
114114
<dependency>
115115
<groupId>com.amazonaws</groupId>
116116
<artifactId>aws-lambda-java-log4j2</artifactId>
117-
<version>1.4.0</version>
118-
</dependency>
119-
<dependency>
120-
<groupId>org.apache.logging.log4j</groupId>
121-
<artifactId>log4j-slf4j-impl</artifactId>
122-
<version>2.16.0</version>
123117
</dependency>
124118
<dependency>
125119
<groupId>software.amazon.awssdk</groupId>

functions/ecs-service-update/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ limitations under the License.
107107
<dependency>
108108
<groupId>com.amazonaws</groupId>
109109
<artifactId>aws-lambda-java-log4j2</artifactId>
110-
<version>1.4.0</version>
111-
</dependency>
112-
<dependency>
113-
<groupId>org.apache.logging.log4j</groupId>
114-
<artifactId>log4j-slf4j-impl</artifactId>
115-
<version>2.16.0</version>
116110
</dependency>
117111
<dependency>
118112
<groupId>software.amazon.awssdk</groupId>

functions/ecs-shutdown-services/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ limitations under the License.
114114
<dependency>
115115
<groupId>com.amazonaws</groupId>
116116
<artifactId>aws-lambda-java-log4j2</artifactId>
117-
<version>1.4.0</version>
118-
</dependency>
119-
<dependency>
120-
<groupId>org.apache.logging.log4j</groupId>
121-
<artifactId>log4j-slf4j-impl</artifactId>
122-
<version>2.16.0</version>
123117
</dependency>
124118
<dependency>
125119
<groupId>software.amazon.awssdk</groupId>

functions/ecs-startup-services/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ limitations under the License.
114114
<dependency>
115115
<groupId>com.amazonaws</groupId>
116116
<artifactId>aws-lambda-java-log4j2</artifactId>
117-
<version>1.4.0</version>
118-
</dependency>
119-
<dependency>
120-
<groupId>org.apache.logging.log4j</groupId>
121-
<artifactId>log4j-slf4j-impl</artifactId>
122-
<version>2.16.0</version>
123117
</dependency>
124118
<dependency>
125119
<groupId>software.amazon.awssdk</groupId>

functions/onboarding-notification/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ limitations under the License.
107107
<dependency>
108108
<groupId>com.amazonaws</groupId>
109109
<artifactId>aws-lambda-java-log4j2</artifactId>
110-
<version>1.4.0</version>
111-
</dependency>
112-
<dependency>
113-
<groupId>org.apache.logging.log4j</groupId>
114-
<artifactId>log4j-slf4j-impl</artifactId>
115-
<version>2.16.0</version>
116110
</dependency>
117111
<dependency>
118112
<groupId>com.fasterxml.jackson.datatype</groupId>

functions/system-rest-api-client/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ limitations under the License.
114114
<dependency>
115115
<groupId>com.amazonaws</groupId>
116116
<artifactId>aws-lambda-java-log4j2</artifactId>
117-
<version>1.4.0</version>
118-
</dependency>
119-
<dependency>
120-
<groupId>org.apache.logging.log4j</groupId>
121-
<artifactId>log4j-slf4j-impl</artifactId>
122-
<version>2.16.0</version>
123117
</dependency>
124118
</dependencies>
125119
</project>

installer/pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,6 @@ limitations under the License.
119119
<version>3.12.4</version>
120120
<scope>test</scope>
121121
</dependency>
122-
<dependency>
123-
<groupId>org.apache.logging.log4j</groupId>
124-
<artifactId>log4j-core</artifactId>
125-
<version>2.17.1</version>
126-
</dependency>
127-
<dependency>
128-
<groupId>org.apache.logging.log4j</groupId>
129-
<artifactId>log4j-api</artifactId>
130-
<version>2.17.1</version>
131-
</dependency>
132-
<dependency>
133-
<groupId>org.apache.logging.log4j</groupId>
134-
<artifactId>log4j-slf4j-impl</artifactId>
135-
<version>2.16.0</version>
136-
</dependency>
137122
<dependency>
138123
<groupId>software.amazon.awssdk</groupId>
139124
<artifactId>cloudformation</artifactId>

layers/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,12 @@
4040
</plugins>
4141
</pluginManagement>
4242
</build>
43+
<dependencies>
44+
<dependency>
45+
<groupId>org.apache.logging.log4j</groupId>
46+
<artifactId>log4j-slf4j-impl</artifactId>
47+
<version>${log4j.version}</version>
48+
<scope>provided</scope>
49+
</dependency>
50+
</dependencies>
4351
</project>

layers/utils/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ limitations under the License.
5656
</build>
5757

5858
<dependencies>
59-
<dependency>
60-
<groupId>org.slf4j</groupId>
61-
<artifactId>slf4j-api</artifactId>
62-
<version>1.7.30</version>
63-
</dependency>
6459
<dependency>
6560
<groupId>com.fasterxml.jackson.core</groupId>
6661
<artifactId>jackson-core</artifactId>

0 commit comments

Comments
 (0)