log

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...any)

func DebugFields added in v1.0.3

func DebugFields(msg string, fields map[string]any)

DebugFields logs a debug level message with structured fields

func Debugf

func Debugf(s string, v ...any)

func Error

func Error(v ...any)

func ErrorEvent

func ErrorEvent(eventType string, data string)

func ErrorEventWithResources

func ErrorEventWithResources(eventType string, screenshot, text, data string)

func ErrorFields added in v1.0.3

func ErrorFields(msg string, fields map[string]interface{})

ErrorFields logs an error level message with structured fields

func ErrorFile

func ErrorFile(filePath string, data string)

func ErrorStack

func ErrorStack(stack, s string, v ...any)

func Errorf

func Errorf(s string, v ...any)

func GetContext

func GetContext() context.Context

func Info

func Info(v ...any)

func InfoEvent

func InfoEvent(eventType string, data string)

func InfoFields added in v1.0.3

func InfoFields(msg string, fields map[string]interface{})

InfoFields logs an info level message with structured fields

func InfoFile

func InfoFile(filePath string, data string)

func Infof

func Infof(s string, v ...any)

func Init

func Init()

func Warning

func Warning(v ...any)

Types

type Logger

type Logger struct {
}

type LoggerInterface

type LoggerInterface interface {
	Debug(v ...any)
	Debugf(s string, v ...any)
	Info(v ...any)
	Infof(s string, v ...any)
	InfoEvent(eventType string, data string)
	ErrorEvent(eventType string, data string)
	ErrorEventWithResources(eventType string, screenshot, text, data string)
	InfoFile(filePath string, data string)
	ErrorFile(filePath string, data string)
	Warning(v ...any)
	Error(v ...any)
	Errorf(s string, v ...any)
	ErrorStack(stack, s string, v ...any)
	DebugFields(msg string, fields map[string]any)
	InfoFields(msg string, fields map[string]interface{})
	ErrorFields(msg string, fields map[string]interface{})
	GetContext() context.Context
}

func FromContext

func FromContext(ctx context.Context) LoggerInterface

func New

func New(ctx context.Context, ctxFields interface{}) LoggerInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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