Skip to content

The new log4j2.xml file Configuration xml element parameter packages is wrong #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Sylistron opened this issue Dec 2, 2017 · 3 comments

Comments

@Sylistron
Copy link

Currently, it points to "com.amazonaws.services.lambda.runtime.log4j2.LambdaAppender" which is not a package - it's a class.

The Configuration element needs to look like this:

@alez007
Copy link

alez007 commented Jan 22, 2018

like what ?

@asuresh8
Copy link
Contributor

I have been using that configuration in production for several months and have had no issue. It's clear that the configuration is not "wrong". That said, if there is a better way to configure this, please reopen this issue and post that configuration here.

@Sylistron
Copy link
Author

@alez007 Whoops - apparently the XML got stripped. The packages attribute should read com.amazonaws.services.lambda.runtime.log4j2

Like so:

<Configuration packages="com.amazonaws.services.lambda.runtime.log4j2">

dtorok added a commit that referenced this issue Aug 28, 2023
* [alc] ContextLogger changes in RIC

---------

Co-authored-by: Daniel Torok <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants