package
0.31.3
Repository: https://github.com/snyk/policy-engine.git
Documentation: pkg.go.dev

# Functions

CurrentLogLevel returns the current log level string based the environment vars.
HCLogger returns the default global hclog logger.
Indent adds two spaces to the beginning of each line of the given string, with the goal of making the log level filter understand it as a line continuation rather than possibly as new log lines.
IsDebugOrHigher returns whether or not the current log level is debug or trace.
LogOutput return the default global log io.Writer.
NewLogger returns a new logger based in the current global logger, with the given name appended.
NewProviderLogger returns a logger for the provider plugin, possibly with a different log level from the global logger.
PanicHandler is called to recover from an internal panic in Terraform, and augments the standard stack trace with a more user friendly error message.
PluginOutputMonitor creates an io.Writer that will warn about any writes in the default logger.
PluginPanics returns a series of provider panics that were collected during execution, and formatted for output.
SetupTempLog adds a new log sink which writes all logs to the given file.

# Variables

ValidLevels are the log level names that Terraform recognizes.