Documentation
¶
Index ¶
- func Debug(msg string)
- func Debugf(format string, v ...interface{})
- func Error(msg string)
- func Errorf(format string, v ...interface{})
- func Fatal(msg string)
- func Fatalf(format string, v ...interface{})
- func Info(msg string)
- func Infof(format string, v ...interface{})
- func Panic(msg string)
- func Panicf(format string, v ...interface{})
- func Trace(msg string)
- func Tracef(format string, v ...interface{})
- func Warn(msg string)
- func Warnf(format string, v ...interface{})
- func WithError(v error) *zerolog.Event
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
WriteLevel string `env:"INFRACOST_CLI_LOG_LEVEL" default:"warn"`
JSON bool `env:"INFRACOST_CLI_LOG_JSON" flag:"json" default:"false"`
}
func (*Config) ToHCLogLevel ¶
ToHCLogLevel converts the WriteLevel to an hclog.Level for use in logging outputs from the plugins.
TODO: We probably should make the plugins load separate log levels for each plugin.
Click to show internal directories.
Click to hide internal directories.