o11y

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 2 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) Debug

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

func (*LogImpl) Error

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

func (*LogImpl) Info

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

func (*LogImpl) Warn

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

type LoggerInterface

type LoggerInterface interface {
	Info(msg string, args ...any)
	Warn(msg string, args ...any)
	Error(msg string, args ...any)
	Debug(msg string, args ...any)
}

func NewLogger

func NewLogger(options LoggerOptions) LoggerInterface

type LoggerOptions

type LoggerOptions struct {
	EnableJSONHandler bool
	EnableStdError    bool
}

Jump to

Keyboard shortcuts

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