Logging is what it says on the tin: statements that get printed out during the execution of the function. They are helpful in instrumenting the code.
In a typical API, these are directed to either StdOut or a file using different appenders.
In AWS Lambda, they are piped to a CloudWatch log group, which can be inspected at a later time.