Documentation ¶
Overview ¶
Package raftyzerolog contains wrappers implementing sylr.dev/rafty/interfaces.Logger and github.com/hashicorp/go-hclog.Logger interfaces aroung zerolog.Logger.
Index ¶
- type HCLogger
- func (l *HCLogger) Debug(format string, args ...interface{})
- func (l *HCLogger) Error(format string, args ...interface{})
- func (l *HCLogger) ImpliedArgs() []interface{}
- func (l *HCLogger) Info(format string, args ...interface{})
- func (l *HCLogger) IsDebug() bool
- func (l *HCLogger) IsError() bool
- func (l *HCLogger) IsInfo() bool
- func (l *HCLogger) IsTrace() bool
- func (l *HCLogger) IsWarn() bool
- func (l *HCLogger) Log(level hclog.Level, format string, args ...interface{})
- func (l *HCLogger) Name() string
- func (l *HCLogger) Named(name string) hclog.Logger
- func (l *HCLogger) ResetNamed(name string) hclog.Logger
- func (l *HCLogger) SetLevel(level hclog.Level)
- func (l *HCLogger) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
- func (l *HCLogger) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
- func (l *HCLogger) Trace(format string, args ...interface{})
- func (l *HCLogger) Warn(format string, args ...interface{})
- func (l *HCLogger) With(args ...interface{}) hclog.Logger
- type RaftyLogger
- func (l *RaftyLogger) Debugf(format string, args ...interface{})
- func (l *RaftyLogger) Errorf(format string, args ...interface{})
- func (l *RaftyLogger) Infof(format string, args ...interface{})
- func (l *RaftyLogger) Tracef(format string, args ...interface{})
- func (l *RaftyLogger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HCLogger ¶
Logger is a wrapper around zerolog.Logger that implements hclog.Logger.
func (*HCLogger) ImpliedArgs ¶
func (l *HCLogger) ImpliedArgs() []interface{}
func (*HCLogger) ResetNamed ¶
func (*HCLogger) StandardLogger ¶
func (*HCLogger) StandardWriter ¶
type RaftyLogger ¶
RaftyLogger is a wrapper around zerolog.Logger that implements logger.Logger.
func (*RaftyLogger) Debugf ¶
func (l *RaftyLogger) Debugf(format string, args ...interface{})
func (*RaftyLogger) Errorf ¶
func (l *RaftyLogger) Errorf(format string, args ...interface{})
func (*RaftyLogger) Infof ¶
func (l *RaftyLogger) Infof(format string, args ...interface{})
func (*RaftyLogger) Tracef ¶
func (l *RaftyLogger) Tracef(format string, args ...interface{})
func (*RaftyLogger) Warnf ¶
func (l *RaftyLogger) Warnf(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.