logger

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfraLogWrapper

type InfraLogWrapper struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(name string) *InfraLogWrapper

func (*InfraLogWrapper) Debug

func (l *InfraLogWrapper) Debug(args ...interface{})

func (*InfraLogWrapper) Debugf

func (l *InfraLogWrapper) Debugf(format string, args ...interface{})

func (*InfraLogWrapper) Error

func (l *InfraLogWrapper) Error(args ...interface{})

func (*InfraLogWrapper) Errorf

func (l *InfraLogWrapper) Errorf(format string, args ...interface{})

func (*InfraLogWrapper) Failuref

func (l *InfraLogWrapper) Failuref(format string, args ...interface{})

func (*InfraLogWrapper) Info

func (l *InfraLogWrapper) Info(args ...interface{})

func (*InfraLogWrapper) Infof

func (l *InfraLogWrapper) Infof(format string, args ...interface{})

func (*InfraLogWrapper) Successf

func (l *InfraLogWrapper) Successf(format string, args ...interface{})

func (*InfraLogWrapper) Warn

func (l *InfraLogWrapper) Warn(args ...interface{})

func (*InfraLogWrapper) Warnf

func (l *InfraLogWrapper) Warnf(format string, args ...interface{})

type Logger

type Logger interface {
	Successf(format string, args ...interface{})
	Failuref(format string, args ...interface{})

	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
}

Logger is used primarily to facilitate logging/user feedback for both the grafana-cli and the grafana backend when managing plugin installs

Jump to

Keyboard shortcuts

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