logger

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Config

type Config struct {
	Level        logrus.Level
	Formatter    logrus.Formatter
	ReportCaller bool
}

type TerraformPluginLogger

type TerraformPluginLogger struct {
	// contains filtered or unexported fields
}

func NewTerraformPluginLogger

func NewTerraformPluginLogger() TerraformPluginLogger

func (TerraformPluginLogger) Debug

func (t TerraformPluginLogger) Debug(msg string, args ...interface{})

func (TerraformPluginLogger) Error

func (t TerraformPluginLogger) Error(msg string, args ...interface{})

func (TerraformPluginLogger) ImpliedArgs

func (t TerraformPluginLogger) ImpliedArgs() []interface{}

func (TerraformPluginLogger) Info

func (t TerraformPluginLogger) Info(msg string, args ...interface{})

func (TerraformPluginLogger) IsDebug

func (t TerraformPluginLogger) IsDebug() bool

func (TerraformPluginLogger) IsError

func (t TerraformPluginLogger) IsError() bool

func (TerraformPluginLogger) IsInfo

func (t TerraformPluginLogger) IsInfo() bool

func (TerraformPluginLogger) IsTrace

func (t TerraformPluginLogger) IsTrace() bool

func (TerraformPluginLogger) IsWarn

func (t TerraformPluginLogger) IsWarn() bool

func (TerraformPluginLogger) Log

func (t TerraformPluginLogger) Log(level hclog.Level, msg string, args ...interface{})

func (TerraformPluginLogger) Name

func (t TerraformPluginLogger) Name() string

func (TerraformPluginLogger) Named

func (t TerraformPluginLogger) Named(name string) hclog.Logger

func (TerraformPluginLogger) ResetNamed

func (t TerraformPluginLogger) ResetNamed(name string) hclog.Logger

func (TerraformPluginLogger) SetLevel

func (t TerraformPluginLogger) SetLevel(level hclog.Level)

func (TerraformPluginLogger) StandardLogger

func (t TerraformPluginLogger) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger

func (TerraformPluginLogger) StandardWriter

func (t TerraformPluginLogger) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer

func (TerraformPluginLogger) Trace

func (t TerraformPluginLogger) Trace(msg string, args ...interface{})

func (TerraformPluginLogger) Warn

func (t TerraformPluginLogger) Warn(msg string, args ...interface{})

func (TerraformPluginLogger) With

func (t TerraformPluginLogger) With(args ...interface{}) hclog.Logger

type TextFormatter

type TextFormatter struct {
	// contains filtered or unexported fields
}

TextFormatter formats logs into text

func NewTextFormatter

func NewTextFormatter(levelTextMaxLength int) *TextFormatter

func (*TextFormatter) Format

func (f *TextFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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