raftyzerolog

package module
v0.0.0-...-6de2257 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Overview

Package raftyzerolog contains wrappers implementing sylr.dev/rafty/interfaces.Logger and github.com/hashicorp/go-hclog.Logger interfaces aroung zerolog.Logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HCLogger

type HCLogger struct {
	zerolog.Logger
}

Logger is a wrapper around zerolog.Logger that implements hclog.Logger.

func (*HCLogger) Debug

func (l *HCLogger) Debug(format string, args ...interface{})

func (*HCLogger) Error

func (l *HCLogger) Error(format string, args ...interface{})

func (*HCLogger) ImpliedArgs

func (l *HCLogger) ImpliedArgs() []interface{}

func (*HCLogger) Info

func (l *HCLogger) Info(format string, args ...interface{})

func (*HCLogger) IsDebug

func (l *HCLogger) IsDebug() bool

func (*HCLogger) IsError

func (l *HCLogger) IsError() bool

func (*HCLogger) IsInfo

func (l *HCLogger) IsInfo() bool

func (*HCLogger) IsTrace

func (l *HCLogger) IsTrace() bool

func (*HCLogger) IsWarn

func (l *HCLogger) IsWarn() bool

func (*HCLogger) Log

func (l *HCLogger) Log(level hclog.Level, format string, args ...interface{})

func (*HCLogger) Name

func (l *HCLogger) Name() string

func (*HCLogger) Named

func (l *HCLogger) Named(name string) hclog.Logger

func (*HCLogger) ResetNamed

func (l *HCLogger) ResetNamed(name string) hclog.Logger

func (*HCLogger) SetLevel

func (l *HCLogger) SetLevel(level hclog.Level)

func (*HCLogger) StandardLogger

func (l *HCLogger) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger

func (*HCLogger) StandardWriter

func (l *HCLogger) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer

func (*HCLogger) Trace

func (l *HCLogger) Trace(format string, args ...interface{})

func (*HCLogger) Warn

func (l *HCLogger) Warn(format string, args ...interface{})

func (*HCLogger) With

func (l *HCLogger) With(args ...interface{}) hclog.Logger

type RaftyLogger

type RaftyLogger struct {
	zerolog.Logger
}

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{})

Jump to

Keyboard shortcuts

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