Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvLog = "TF_LOG" // Set to True EnvLogFile = "TF_LOG_PATH" // Set to a file )
These are the environmental variables that determine if we log, and if we log whether or not the log should go to a file.
Variables ¶
View Source
var ValidLevels = []logutils.LogLevel{"TRACE", "DEBUG", "INFO", "WARN", "ERROR"}
Functions ¶
func IsDebugOrHigher ¶ added in v0.6.13
func IsDebugOrHigher() bool
IsDebugOrHigher returns whether or not the current log level is debug or trace
func LogLevel ¶ added in v0.6.13
func LogLevel() string
LogLevel returns the current log level string based the environment vars
func NewTransport ¶ added in v0.9.5
func NewTransport(name string, t http.RoundTripper) *transport
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.