Skip to content

Commit 89a7219

Browse files
authored
Update docs for Using log4j with AWS Lambda
[edwgiz/maven-shaded-log4j-transformer](https://github.com/edwgiz/maven-shaded-log4j-transformer) has moved to the official Log4j module [log4j-transform-maven-shade-plugin-extensions](https://logging.apache.org/log4j/transform/log4j-transform-maven-shade-plugin-extensions.html)
1 parent 0fe7f67 commit 89a7219

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

aws-lambda-java-log4j2/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,24 @@ If using maven shade plugin, set the plugin configuration as follows
4949
<configuration>
5050
<transformers>
5151
<transformer
52-
implementation="com.github.edwgiz.mavenShadePlugin.log4j2CacheTransformer.PluginsCacheFileTransformer">
52+
implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer" />
53+
<transformer
54+
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
55+
<transformer
56+
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
57+
<manifestEntries>
58+
<Multi-Release>true</Multi-Release>
59+
</manifestEntries>
5360
</transformer>
5461
</transformers>
5562
</configuration>
5663
</execution>
5764
</executions>
5865
<dependencies>
5966
<dependency>
60-
<groupId>com.github.edwgiz</groupId>
61-
<artifactId>maven-shade-plugin.log4j2-cachefile-transformer</artifactId>
62-
<version>2.8.1</version>
67+
<groupId>org.apache.logging.log4j</groupId>
68+
<artifactId>log4j-transform-maven-shade-plugin-extensions</artifactId>
69+
<version>0.2.0</version>
6370
</dependency>
6471
</dependencies>
6572
</plugin>

0 commit comments

Comments
 (0)