Documentation
¶
Overview ¶
Package logging contains functions to create the plugin hclog.Logger
Index ¶
Constants ¶
View Source
const ( EnvLogLevel = "STEAMPIPE_LOG_LEVEL" EnvProfile = "STEAMPIPE_PROFILE" )
Variables ¶
View Source
var LegacyLogLevelEnvVars = []string{"SP_LOG", "STEAMPIPE_LOG"}
Functions ¶
func ClearProfileData ¶
func ClearProfileData()
func DisplayProfileData ¶
Types ¶
type EscapeNewlineWriter ¶
type EscapeNewlineWriter struct {
// contains filtered or unexported fields
}
EscapeNewlineWriter represents a io.Writer that can escape newlines
func NewEscapeNewlineWriter ¶
func NewEscapeNewlineWriter(writer io.Writer) EscapeNewlineWriter
NewEscapeNewlineWriter returns an object that conform to the io.Writer interface and can be used to escape newline ('\n') with the string literal ("\n") The param is the underlying io.Writer that this object will write to
type UnescapeNewlineWriter ¶
type UnescapeNewlineWriter struct {
// contains filtered or unexported fields
}
UnescapeNewlineWriter represents a io.Writer that can unescape newlines
func NewUnescapeNewlineWriter ¶
func NewUnescapeNewlineWriter(writer io.Writer) UnescapeNewlineWriter
NewEscapeNewlineWriter returns an object that conform to the io.Writer interface and can be used to unescape newline string literal ("\n") with the newline byte ('\n') The param is the underlying io.Writer that this object will write to
Click to show internal directories.
Click to hide internal directories.