Skip to content

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

Closed

Description

@Sylistron

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:

Activity

  1. alez007 commented on Jan 22, 2018

    @alez007

    like what ?

  2. asuresh8 commented on Apr 16, 2018

    @asuresh8
    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.

  3. Sylistron commented on Apr 17, 2018

    @Sylistron
    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">

  4. added a commit that references this issue on Aug 28, 2023
  5. added a commit that references this issue on Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions