Documentation ¶
Overview ¶
This code was kindly taken from go-hclog src
Index ¶
- Constants
- func New(l *slog.Logger) hclog.Logger
- type Shclog
- func (l *Shclog) Debug(msg string, args ...interface{})
- func (l *Shclog) Error(msg string, args ...interface{})
- func (l *Shclog) GetLevel() hclog.Level
- func (l *Shclog) ImpliedArgs() []interface{}
- func (l *Shclog) Info(msg string, args ...interface{})
- func (l *Shclog) IsDebug() bool
- func (l *Shclog) IsError() bool
- func (l *Shclog) IsInfo() bool
- func (l *Shclog) IsTrace() bool
- func (l *Shclog) IsWarn() bool
- func (l *Shclog) Log(level hclog.Level, msg string, args ...interface{})
- func (l *Shclog) Name() string
- func (l *Shclog) Named(name string) hclog.Logger
- func (l *Shclog) ResetNamed(name string) hclog.Logger
- func (l *Shclog) SetLevel(level hclog.Level)
- func (l *Shclog) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
- func (l *Shclog) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
- func (l *Shclog) Trace(msg string, args ...interface{})
- func (l *Shclog) Warn(msg string, args ...interface{})
- func (l *Shclog) With(args ...interface{}) hclog.Logger
Constants ¶
View Source
const SlogLevelTrace = slog.LevelDebug - 4
Slog does not have built in trace log level
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Shclog ¶
type Shclog struct {
// contains filtered or unexported fields
}
func (*Shclog) ImpliedArgs ¶
func (l *Shclog) ImpliedArgs() []interface{}
func (*Shclog) ResetNamed ¶
func (*Shclog) StandardLogger ¶
func (*Shclog) StandardWriter ¶
Click to show internal directories.
Click to hide internal directories.