MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / parseLogLevel

Function parseLogLevel

lambdacontext/logger.go:138–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138func parseLogLevel() slog.Level {
139 switch logLevel {
140 case "DEBUG":
141 return slog.LevelDebug
142 case "INFO":
143 return slog.LevelInfo
144 case "WARN":
145 return slog.LevelWarn
146 case "ERROR":
147 return slog.LevelError
148 default:
149 return slog.LevelInfo
150 }
151}

Callers 2

TestParseLogLevelFunction · 0.85
NewLogHandlerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseLogLevelFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…