Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithLogger ¶
ContextWithLogger stuffs the given logger (or a new logger if nil) into a context and returns that.
func LogLevelFromEnv ¶
LogLevelFromEnv parses the `PULUMI_MID_LOG_LEVEL` environment variable to get the logging level. It defaults to "INFO" if the environment variable is not set or if it was set to an invalid value.
func LoggerFromContext ¶
LoggerFromContext retrieves the logger from a context previously set with ContextWithLogger or returns a new logger if one was not found.
Types ¶
Click to show internal directories.
Click to hide internal directories.