Skip to content

Log4j2 and Lambda runtime issue which fails logger util in some scenario #825

Closed
@pankajagrawal16

Description

@pankajagrawal16

What were you initially searching for in the docs?

This issue is created via discussions as part of aws-samples/aws-lambda-powertools-examples#67

Is this related to an existing part of the documentation? Please share a link

https://awslabs.github.io/aws-lambda-powertools-java/core/logging/

Describe how we could make it clearer

  • Update docs and samples to specify class names directly when initialising logger. Thats better from cold start perspective anyways.
  • Clarify and address this bit in FAQ section of doc as well with a workaround on what config might be needed, if users still want to depend on log4j to figure out class name.
  • Update all the examples here too https://github.com/aws-samples/aws-lambda-powertools-examples which is using logger without specifying a class name-

If you have a proposed update, please share it here

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions