Git Product home page Git Product logo

Comments (6)

trourance avatar trourance commented on September 28, 2024

As a side note, removing org.apache.logging.log4j:log4j-slf4j-impl from the dependencies suppress the error, but then there's a timeout in Transforming org/apache/logging/log4j/core/lookup/JndiLookup (lambdainternal.CustomerClassLoader@76fb509a)

from powertools-lambda-java.

scottgerring avatar scottgerring commented on September 28, 2024

Hey @trourance thanks for raising the issue!
Do you mind including:

  • Some info / code about your logging setup
  • The logging deps you are carrying and their versions

It looks like you are missing some part of slf4j needed to hook into log4j. We support log4j primarily in our current setup, so I'd guess that piece in the middle is involved.

from powertools-lambda-java.

scottgerring avatar scottgerring commented on September 28, 2024

@trourance do you mind quickly chucking this dependency in instead of log4j-slf4j-impl ?

https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j2-impl

from powertools-lambda-java.

trourance avatar trourance commented on September 28, 2024

@scottgerring In the lambda, we only use only one logger, the context logger, e.g. context.logger.log(...).
In the rest of our code, we use only org.apache.logging.log4j:log4j-core:2.17.2, instantiated with LogManager, e.g. val log = LogManager.getLogger(...)

from powertools-lambda-java.

trourance avatar trourance commented on September 28, 2024

@scottgerring Using log4j-slf4j2-impl instead of log4j-slf4j-impl fixed that issue, thanks for pinpointing the mistake !

from powertools-lambda-java.

scottgerring avatar scottgerring commented on September 28, 2024

No worries @trourance glad to help 🙇

from powertools-lambda-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.