Documentation
¶
Overview ¶
Package shclog provides an type that acts like an hclog, but that outputs to a log/slog Logger
Index ¶
- Constants
- func New(l *slog.Logger) hclog.Logger
- type Shclog
- func (l *Shclog) Debug(msg string, args ...any)
- func (l *Shclog) Error(msg string, args ...any)
- func (l *Shclog) GetLevel() hclog.Level
- func (l *Shclog) ImpliedArgs() []any
- func (l *Shclog) Info(msg string, args ...any)
- 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 ...any)
- 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 ...any)
- func (l *Shclog) Warn(msg string, args ...any)
- func (l *Shclog) With(args ...any) hclog.Logger
Constants ¶
View Source
const ( TimeFormatJSON = "2006-01-02T15:04:05.000000Z0700" TimeFormat = "2006-01-02T15:04:05.000Z0700" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Shclog ¶
type Shclog struct {
// contains filtered or unexported fields
}
func (*Shclog) ImpliedArgs ¶
func (*Shclog) StandardLogger ¶
func (l *Shclog) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
func (*Shclog) StandardWriter ¶
func (l *Shclog) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
Click to show internal directories.
Click to hide internal directories.