A macro for logging a message with a given log::Level. If LOG_TO_CLOUDWATCH is “true”,
it sends the log to CloudWatch asynchronously. Otherwise, it logs to the console.
A macro for logging a message with a custom log stream name. If LOG_TO_CLOUDWATCH is “true”,
it sends the log to CloudWatch asynchronously under the specified custom stream. Otherwise,
it prints logs to the console.