log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPluginLogWrapper

func NewPluginLogWrapper(logger hclog.Logger) (hclog.Logger, chan<- string)

Types

type Logger

type Logger struct {
	hclog.Logger
	// contains filtered or unexported fields
}

Logger is the internal logger that is aware of the state of the process as it moves from one stage to the next. Plugins should use github.com/zostay/zedpm/pkg/log.Logger instead.

func (*Logger) Debug

func (l *Logger) Debug(msg string, args ...any)

func (*Logger) Error

func (l *Logger) Error(msg string, args ...any)

func (*Logger) ImpliedArgs

func (l *Logger) ImpliedArgs() []any

func (*Logger) Info

func (l *Logger) Info(msg string, args ...any)

func (*Logger) Log

func (l *Logger) Log(level hclog.Level, msg string, args ...any)

func (*Logger) Named

func (l *Logger) Named(name string) hclog.Logger

func (*Logger) ResetNamed

func (l *Logger) ResetNamed(name string) hclog.Logger

func (*Logger) Trace

func (l *Logger) Trace(msg string, args ...any)

func (*Logger) Warn

func (l *Logger) Warn(msg string, args ...any)

func (*Logger) With

func (l *Logger) With(args ...any) hclog.Logger

Jump to

Keyboard shortcuts

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