Documentation ¶
Index ¶
- func Wrap(logger *zap.Logger) hclog.Logger
- type Wrapper
- func (w Wrapper) Debug(msg string, args ...any)
- func (w Wrapper) Error(msg string, args ...any)
- func (w Wrapper) GetLevel() hclog.Level
- func (w Wrapper) ImpliedArgs() []any
- func (w Wrapper) Info(msg string, args ...any)
- func (w Wrapper) IsDebug() bool
- func (w Wrapper) IsError() bool
- func (w Wrapper) IsInfo() bool
- func (w Wrapper) IsTrace() bool
- func (w Wrapper) IsWarn() bool
- func (w Wrapper) Log(level hclog.Level, msg string, args ...any)
- func (w Wrapper) Name() string
- func (w Wrapper) Named(name string) hclog.Logger
- func (w Wrapper) ResetNamed(name string) hclog.Logger
- func (w Wrapper) SetLevel(level hclog.Level)
- func (w Wrapper) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
- func (w Wrapper) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
- func (w Wrapper) Trace(msg string, args ...any)
- func (w Wrapper) Warn(msg string, args ...any)
- func (w Wrapper) With(args ...any) hclog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper is a type that wraps a zap Logger and adapts it to a hclog.Logger
func (Wrapper) ImpliedArgs ¶
func (Wrapper) ResetNamed ¶
func (Wrapper) StandardLogger ¶
func (Wrapper) StandardWriter ¶
Click to show internal directories.
Click to hide internal directories.