logging

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Debugf

func Debugf(format string, v ...interface{})

func Error

func Error(msg string)

func Errorf

func Errorf(format string, v ...interface{})

func Fatal

func Fatal(msg string)

func Fatalf

func Fatalf(format string, v ...interface{})

func Info

func Info(msg string)

func Infof

func Infof(format string, v ...interface{})

func Panic

func Panic(msg string)

func Panicf

func Panicf(format string, v ...interface{})

func Trace

func Trace(msg string)

func Tracef

func Tracef(format string, v ...interface{})

func Warn

func Warn(msg string)

func Warnf

func Warnf(format string, v ...interface{})

func WithError

func WithError(v error) *zerolog.Event

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) Process added in v0.0.3

func (config *Config) Process()

func (*Config) ToHCLogLevel

func (config *Config) ToHCLogLevel() hclog.Level

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL