package
0.0.0-20240919032739-eac131825870
Repository: https://github.com/nguyengg/golambda.git
Documentation: pkg.go.dev

# Functions

LogSmithyError checks that the given error is of type smithy.OperationError and/or smithy.APIError and logs the fields.
LogSmithyErrorWithLogger is a variant of LogSmithyError that allows specifying a log.Logger to use.
SetUpGlobalLogger sets up log.Default with flags set to RecommendedLogFlag and prefix set to the AwsRequestID from lambdacontext.FromContext.
SetUpLogger is a variant of SetUpGlobalLogger that targets a specific log.Logger.
SetUpZeroLogGlobalLevel sets zerolog.SetGlobalLevel according to available environment variables.

# Constants

RecommendedDebugLogFlag is the flag passed to log.SetFlags by SetUpLogger if [configsupport.IsDebug] is true.
RecommendedLogFlag is the flag passed to log.SetFlags by SetUpLogger if [configsupport.IsDebug] is false.