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

profile picture
EXPERT
answered 4 months ago
profile pictureAWS
EXPERT
reviewed 4 months 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.

Guidelines for Answering Questions