o11y

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogImpl

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

func (*LogImpl) Args

func (l *LogImpl) Args(args ...LoggerArg) []pterm.LoggerArgument

func (*LogImpl) Debug

func (l *LogImpl) Debug(msg string, args ...LoggerArg)

func (*LogImpl) Error

func (l *LogImpl) Error(msg string, args ...LoggerArg)

func (*LogImpl) Fatal

func (l *LogImpl) Fatal(msg string, args ...LoggerArg)

func (*LogImpl) Info

func (l *LogImpl) Info(msg string, args ...LoggerArg)

func (*LogImpl) Trace

func (l *LogImpl) Trace(msg string, args ...LoggerArg)

func (*LogImpl) Warn

func (l *LogImpl) Warn(msg string, args ...LoggerArg)

type LoggerArg

type LoggerArg struct {
	Key   string
	Value interface{}
}

type LoggerInterface

type LoggerInterface interface {
	Trace(msg string, args ...LoggerArg)
	Debug(msg string, args ...LoggerArg)
	Info(msg string, args ...LoggerArg)
	Warn(msg string, args ...LoggerArg)
	Error(msg string, args ...LoggerArg)
	Fatal(msg string, args ...LoggerArg)
	Args(args ...LoggerArg) []pterm.LoggerArgument
}

func NewLogger

func NewLogger(options LoggerOptions) LoggerInterface

type LoggerOptions

type LoggerOptions struct {
	RegisterCallerFunction bool
	WriteToStdout          bool
}

Jump to

Keyboard shortcuts

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