Skip to content

Using Log4J with Java AWS Lambda Function

0

Hi, if we use the log4j library with our Java Lambda Function, where is the log written to? Is it written along with the CloudWatch logs? Thank you.

1 Answer
2
Accepted Answer

Hello.

Yes, you can output to CloudWatch Logs using the log4j library.
https://docs.aws.amazon.com/lambda/latest/dg/java-logging.html#java-logging-log4j2

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.