File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7474
7575 <build >
7676 <plugins >
77- <plugin >
78- <groupId >org.apache.maven.plugins</groupId >
79- <artifactId >maven-compiler-plugin</artifactId >
80- </plugin >
81- <plugin >
82- <groupId >org.apache.maven.plugins</groupId >
83- <artifactId >maven-surefire-plugin</artifactId >
84- </plugin >
85- <!-- Shade plugin to create deployable Lambda JAR -->
8677 <plugin >
8778 <groupId >org.apache.maven.plugins</groupId >
8879 <artifactId >maven-shade-plugin</artifactId >
8980 <version >3.5.1</version >
9081 <configuration >
9182 <createDependencyReducedPom >false</createDependencyReducedPom >
9283 </configuration >
84+ <dependencies >
85+ <dependency >
86+ <groupId >org.apache.logging.log4j</groupId >
87+ <artifactId >log4j-transform-maven-shade-plugin-extensions</artifactId >
88+ <version >0.2.0</version >
89+ </dependency >
90+ </dependencies >
9391 <executions >
9492 <execution >
9593 <phase >package</phase >
9694 <goals >
9795 <goal >shade</goal >
9896 </goals >
97+ <configuration >
98+ <transformers >
99+ <transformer
100+ implementation =" org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer" />
101+ <transformer
102+ implementation =" org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
103+ <transformer
104+ implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" />
105+ </transformers >
106+ </configuration >
99107 </execution >
100108 </executions >
101109 </plugin >
Original file line number Diff line number Diff line change 22<Configuration status =" WARN" >
33 <Appenders >
44 <Console name =" Console" target =" SYSTEM_OUT" >
5- <JsonTemplateLayout eventTemplateUri =" classpath:EcsLayout.json" />
5+ <JsonTemplateLayout eventTemplateUri =" classpath:EcsLayout.json" />
66 </Console >
77 </Appenders >
8-
8+
99 <Loggers >
1010 <!-- SDK internal logs at WARN -->
11- <Logger name =" com.amazonaws.lambda.durable" level =" WARN" />
12-
11+ <Logger name =" com.amazonaws.lambda.durable" level =" WARN" />
12+
1313 <!-- AWS SDK logs at WARN -->
14- <Logger name =" software.amazon.awssdk" level =" WARN" />
15-
14+ <Logger name =" software.amazon.awssdk" level =" WARN" />
15+
16+ <!-- Examples logs at INFO -->
17+ <Logger name =" com.amazonaws.lambda.durable.examples" level =" INFO" additivity =" false" >
18+ <AppenderRef ref =" Console" />
19+ </Logger >
20+
1621 <!-- Everything else at INFO -->
1722 <Root level =" INFO" >
18- <AppenderRef ref =" Console" />
23+ <AppenderRef ref =" Console" />
1924 </Root >
2025 </Loggers >
2126</Configuration >
You can’t perform that action at this time.
0 commit comments