Skip to content

Commit ee1da88

Browse files
iconararaupachz
authored andcommitted
Fix the packages directive in the example config
When using the config in the readme you get these errors: ``` Error processing element Lambda ([Appenders: null]): CLASS_NOT_FOUND Unable to locate appender "lambda" for logger config "root" ``` The Lambda documentation site (https://docs.aws.amazon.com/lambda/latest/dg/java-logging.html) does not have the class name in the attribute, and removing the class name makes the errors above go away.
1 parent 5c3879c commit ee1da88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-lambda-java-log4j2/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Add the following file `<project-dir>/src/main/resources/log4j2.xml`
6868

6969
```xml
7070
<?xml version="1.0" encoding="UTF-8"?>
71-
<Configuration packages="com.amazonaws.services.lambda.runtime.log4j2.LambdaAppender">
71+
<Configuration packages="com.amazonaws.services.lambda.runtime.log4j2">
7272
<Appenders>
7373
<Lambda name="Lambda">
7474
<PatternLayout>

0 commit comments

Comments
 (0)