logger

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupForGoPlugin added in v0.0.11

func SetupForGoPlugin()

Types

type HCLoggerAdapter added in v0.0.11

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

func GetHCLoggerAdapter added in v0.0.11

func GetHCLoggerAdapter() *HCLoggerAdapter

func (*HCLoggerAdapter) Debug added in v0.0.11

func (a *HCLoggerAdapter) Debug(msg string, args ...interface{})

func (*HCLoggerAdapter) Error added in v0.0.11

func (a *HCLoggerAdapter) Error(msg string, args ...interface{})

func (*HCLoggerAdapter) ImpliedArgs added in v0.0.11

func (a *HCLoggerAdapter) ImpliedArgs() []interface{}

func (*HCLoggerAdapter) Info added in v0.0.11

func (a *HCLoggerAdapter) Info(msg string, args ...interface{})

func (*HCLoggerAdapter) IsDebug added in v0.0.11

func (a *HCLoggerAdapter) IsDebug() bool

func (*HCLoggerAdapter) IsError added in v0.0.11

func (a *HCLoggerAdapter) IsError() bool

func (*HCLoggerAdapter) IsInfo added in v0.0.11

func (a *HCLoggerAdapter) IsInfo() bool

func (*HCLoggerAdapter) IsTrace added in v0.0.11

func (a *HCLoggerAdapter) IsTrace() bool

func (*HCLoggerAdapter) IsWarn added in v0.0.11

func (a *HCLoggerAdapter) IsWarn() bool

func (*HCLoggerAdapter) Log added in v0.0.11

func (a *HCLoggerAdapter) Log(level hclog.Level, msg string, args ...interface{})

func (*HCLoggerAdapter) Name added in v0.0.11

func (a *HCLoggerAdapter) Name() string

func (*HCLoggerAdapter) Named added in v0.0.11

func (a *HCLoggerAdapter) Named(name string) hclog.Logger

func (*HCLoggerAdapter) ResetNamed added in v0.0.11

func (a *HCLoggerAdapter) ResetNamed(name string) hclog.Logger

func (*HCLoggerAdapter) SetLevel added in v0.0.11

func (a *HCLoggerAdapter) SetLevel(level hclog.Level)

func (*HCLoggerAdapter) StandardLogger added in v0.0.11

func (a *HCLoggerAdapter) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger

func (*HCLoggerAdapter) StandardWriter added in v0.0.11

func (a *HCLoggerAdapter) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer

func (*HCLoggerAdapter) Trace added in v0.0.11

func (a *HCLoggerAdapter) Trace(msg string, args ...interface{})

func (*HCLoggerAdapter) Warn added in v0.0.11

func (a *HCLoggerAdapter) Warn(msg string, args ...interface{})

func (*HCLoggerAdapter) With added in v0.0.11

func (a *HCLoggerAdapter) With(args ...interface{}) hclog.Logger

type Logger

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

func GetLogger added in v0.0.11

func GetLogger() *Logger

func New

func New() *Logger

func SetupDefault

func SetupDefault() *Logger

func (*Logger) Enabled

func (l *Logger) Enabled(ctx context.Context, level slog.Level) bool

func (*Logger) Handle

func (l *Logger) Handle(ctx context.Context, rec slog.Record) error

func (*Logger) SetLevel added in v0.0.10

func (l *Logger) SetLevel(level slog.Level)

func (*Logger) WithAttrs

func (l *Logger) WithAttrs(attrs []slog.Attr) slog.Handler

func (*Logger) WithGroup

func (l *Logger) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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