From the course: Java: Serverless Applications on AWS
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Incorporate logging in your Lambda function
From the course: Java: Serverless Applications on AWS
Incorporate logging in your Lambda function
- [Instructor] Logging is an important part of developing and operating any kind of application. We are going to explore different ways to incorporate logging in your Lambda Function, how logs can be tracked in CloudWatch Logging service, and finally, some best practices specific to Lambda logging. The most basic logging we have is using Standard Out and Standard Error, which are captured by Lambda runtime, and are shown in the result of Lambda call in IntelliJ, or Lambda web console. They're also pushed to the CloudWatch Logging service, which centralizes logs from many different services, such as Lambda, API Gateway, Step Functions, and many others. You can then easily view them, search for specific search terms or errors, filter specific fields, and archive for future analysis. Three main concepts you should be aware of are, Log Events, which represent a single log message. Log Stream, sequence of log events on…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.